We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cross-Origin-Opener-Policy
1.49.0
npm install
npm run test
Test should pass. Firefox should still be in dark mode when taking the screenshot of the page.
Test fails. Firefox is in light mode when taking the screenshot of the page.
There is a workaround in workaround.spec.ts, which is to simply navigate to the page and then emulateMedia.
workaround.spec.ts
emulateMedia
System: OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (16) x64 AMD Ryzen 7 2700 Eight-Core Processor Memory: 9.77 GB / 15.54 GB Container: Yes Binaries: Node: 18.19.1 - /usr/bin/node npm: 9.2.0 - /usr/bin/npm Languages: Bash: 5.2.21 - /usr/bin/bash npmPackages: @playwright/test: ^1.49.0 => 1.49.0
The text was updated successfully, but these errors were encountered:
aslushnikov
No branches or pull requests
Version
1.49.0
Steps to reproduce
npm install
npm run test
Expected behavior
Test should pass. Firefox should still be in dark mode when taking the screenshot of the page.
Actual behavior
Test fails. Firefox is in light mode when taking the screenshot of the page.
Additional context
There is a workaround in
workaround.spec.ts
, which is to simply navigate to the page and thenemulateMedia
.Environment
System: OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (16) x64 AMD Ryzen 7 2700 Eight-Core Processor Memory: 9.77 GB / 15.54 GB Container: Yes Binaries: Node: 18.19.1 - /usr/bin/node npm: 9.2.0 - /usr/bin/npm Languages: Bash: 5.2.21 - /usr/bin/bash npmPackages: @playwright/test: ^1.49.0 => 1.49.0
The text was updated successfully, but these errors were encountered: