Calling Developers!
We are reenergizing our code contribution process! Learn More

Changing the default locale leads to failing tests

eliasws Tech Lead Posts: 7 🧑🏻‍🚀 - Cadet
edited August 2023 in Spryker Development

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!