wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.15k stars 1.92k forks source link

Dark Mode support #4114

Open noomorph opened 1 year ago

noomorph commented 1 year ago

Describe your idea

It would be nice to provide some API for toggling between light and dark theme on devices:

d4vidi commented 1 year ago

Thanks @noomorph! I think we need to try to dig up a simpler solution for Android specifically because:

  1. It's about changing the setting on the device; The effect on the app is not necessarily inherent, and the gap could potentially add noise that is more attributed to functionality testing rather than the desired visibility+layout testing, as with the case of screenshot-testing (which typically dark-mode switching is for).
  2. It requires a device restart.