You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We cannot change the media query for now in Cypress, but we could stub media query from JavaScript, so that websites that load style based on query can switch to dark mode.
Example website that loads dark theme based on the CSS media
We cannot change the media query for now in Cypress, but we could stub media query from JavaScript, so that websites that load style based on query can switch to dark mode.
Example website that loads dark theme based on the CSS media
this works only in Safari technical preview 68 Fyrd/caniuse#4514 and is tied to the Mac OS Mojave https://paulmillr.com/posts/using-dark-mode-in-css/
But we can "emulate" this using JavaScript load in Electron / Chrome like this
And this is only to allow the code below from this module to pass to the website that we want to use the dark color mode
Looks like this in a simple todo app
The text was updated successfully, but these errors were encountered: