Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use playwright's emulateMedia to set prefers-reduced-motion
Instead of setting a Chrome-only CLI flag. For some reason the CLI flag isn't working for me anymore after updating Playwright to 1.14.1 (might be a bug in Playwright). Investigating that led me to https://playwright.dev/docs/api/class-page#page-emulate-media and microsoft/playwright#6646. This resolves the issue I'm seeing, and also should work in all browsers, instead of just Chrome.
- Loading branch information