-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
What happened?
We are currently specifying a very old version of Playwright, but with a ^
:
"@playwright/test": "^1.41.1",
v1.41.1 is deprecated and no longer available from npm. Because of the caret ^
, npm install
instead loads 1.55.1
. Playwright does not follow semver, so there are many breaking changes between those two versions.
With the latest version 1.55.1
, the playwright browser binaries are not able to find WebGL on my machine. Here is the screenshot for "3D Models Coloring" using Playwright 1.55.1
:

If I pin Playwright to 1.46.0
(the oldest version still available), the screenshot is generated correctly:

Note: I have to clear the cache of browser binaries when changing versions.
Reproduction steps
Make sure to start from a clean slate, both for Cesium and for Playwright:
- Remove all installed packages:
git clean -dxf
- Remove Playwright browser binaries. On Ubuntu, they were stored in my home directory:
rm -rf ~/.cache/ms-playwright
npm install
npm run build
npm run test-e2e-update
Sandcastle example
No response
Environment
Browser: Playwright's pre-built chromium binaries
CesiumJS Version: 1.134
Operating System: WSL Ubuntu