Open johnnygerard opened 1 month ago
We have similar issue on our tests suite, most tests fail with ubuntu 24.04 when it works on 22.04 or mac.
@johnnygerard Thank you for the detailed repro! I tried to reproduce this on Ubuntu 24.04 LTS
(I don't have 24.04.1 readily available),@playwright/test@1.48.0
and node v20.15.0
. Unfortunately, all tests pass for me in all browsers, with and without --headed
or --ui
, running multiple times. Any ideas on what could be different? Anything specific in your setup?
@dgozman With the ubuntu-24.04.1-desktop-amd64.iso
image installed on a USB stick, I used the "Try Ubuntu" feature before running the test script.
If you use the same approach only the hardware could make a difference. I couldn't find your Ubuntu version.
I got the same test results on ubuntu-24.04-desktop-amd64.iso
(retrieved from Old Ubuntu Releases).
@dgozman Did you use a different Ubuntu image?
@johnnygerard Have you tried debugging the failure, recording a trace? Since I am not able to reproduce, any information from your side would be helpful. Perhaps you've got some kind of proxy? Maybe the computer+OS combination is so slow that it does not load in 5000ms?
I've updated bug-playwright-button-click GitHub Actions workflow to run with ubuntu-24.04
and the tests pass (see results).
Here is the report of the last failed test on my machine using a timeout of 30s: playwright-report.zip.
Run npx playwright show-report
where the extracted folder is to view the report.
In debug mode (npx playwright test --debug
), all tests pass because it runs in headed mode.
I don't use a proxy of any kind.
@johnnygerard One idea I have is this could be related to prefers-color-scheme
support. Trace shows that "light/dark mode switch" is disabled
, perhaps because docusaurus failed to detect default color scheme? Does this webkit problem reproduce with other tests, not on playwright.dev
?
@dgozman I updated bug-playwright-button-click to test a noop button from GitHub Pages. I get the same results.
@johnnygerard Could you also attach the trace/report? Since I cannot reproduce, I solely rely on your artifacts.
@dgozman playwright-report.zip
@johnnygerard Thank you! Could you also run with DEBUG=pw:protocol
and share the report please? Something is definitely stuck there, perhaps rafs are not firing? I hope that protocol log would help.
@dgozman playwright-report.zip with DEBUG=pw:protocol
I tried to reproduce on amd and arm64 Ubuntu 24.04.1
docker run -it mcr.microsoft.com/playwright:v1.48.1-noble /bin/bash
but was not able to.
After looking at the logs, it seems like the issue is with rafs not firing, specific to WPE webkit headless backend. There's been similar issues with WPE, for example this one https://bugs.webkit.org/show_bug.cgi?id=255682. Let's see what can be done upstream.
Version
1.48.0
Steps to reproduce
Expected behavior
All tests should pass.
Actual behavior
Some tests fail:
Additional context
The tests only fail in specific conditions: only WebKit in
--headless
or--ui
mode in Ubuntu 24.04.1 LTS (on my current machine and also on a fresh install).I tried various combinations:
--headed
mode regardless of Ubuntu version.A simple workaround is to use
button.press("Enter")
instead ofbutton.click()
andbutton.tap()
.Environment
System: OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (8) x64 Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz Memory: 10.36 GB / 15.24 GB Container: Yes Binaries: Node: 20.18.0 - /usr/bin/node npm: 10.9.0 - /usr/bin/npm pnpm: 9.12.1 - /usr/bin/pnpm Languages: Bash: 5.2.21 - /usr/bin/bash npmPackages: @playwright/test: ^1.48.0 => 1.48.0