-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Emulate reduced motion media query #3320
Comments
Could you help us prioritizing this? Does it come from a customer or is it a feature parity request? |
It's about feature parity. It's same story as #3321 - we offer bindings for emulating media features from tests, using both puppeteer and playwright. Right now we throw an error when trying to emulate reduced motion when running tests with playwright. |
This would be incredibly useful for testing purposes. For accessibility purposes, we disable all animations based the Being able to set it to avoid fragile tests would save a bunch of time overall! |
FWIW I'd like to be able to emulate this media query so I don't have to wait for animations to end in my tests. Of course something like #4055 would help as well but without either I'm just doing arbitrary |
Puppeteer allows emulating the reduced motion media query: https://github.com/puppeteer/puppeteer/blob/v5.2.1/docs/api.md#pageemulatemediafeaturesfeatures
It would be great if we can support this in playwright as well. It's widely supported in browsers: https://caniuse.com/#feat=prefers-reduced-motion
The text was updated successfully, but these errors were encountered: