karma-runner / karma-browserstack-launcher

A Karma plugin. Launch any browser on BrowserStack!
MIT License
150 stars 82 forks source link

Support setting timezone #187

Open daniel-sc opened 3 years ago

daniel-sc commented 3 years ago

As acknowledged by support staff and reflected in the readme (see commit 624494e544b75b224a717c6706a97b4815b5ea4c) it is currently not possible to set the timezone of the browser. This makes any tests that deal with dates unstable. For a good reason this is supported for Selenium tests - so it should be supported for Karma tests as well!

I don't know if the launcher can implement this, or this needs to be supported bei Browserstack somehow, but this situation is very annoying, so I'd like to track this publicly here.

See as well here https://stackoverflow.com/questions/43630813/is-it-possible-to-set-the-timezone-in-browserstack and https://github.com/karma-runner/karma-browserstack-launcher/issues/66#issuecomment-389858127