Changing the default locale leads to failing tests
eliasws
Tech Lead Posts: 7 🧑🏻🚀 - Cadet
Were trying to set the default locale of our instance to de_DE (changing the order in stores.php), which leads to a situation where a lot of acceptance tests are failing, because they expect english strings in their assertions.
How can we approach this issue in a clean way?
a) Fix all failing tests and test with german?
b) Change default language only for tests? How? Any hint?
1. Is there an environment variable which tells us we are in a test env?
2. Override the config for test setting?
c) Implement browser based language selection. How?
Thanks in advance!
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 73 Spryker News
- 911 Developer Corner
- 771 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random