Skip to content

End-to-end tests not generating screenshots #12948

@jjhembd

Description

@jjhembd

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:

Image

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

Image

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:

  1. Remove all installed packages: git clean -dxf
  2. Remove Playwright browser binaries. On Ubuntu, they were stored in my home directory: rm -rf ~/.cache/ms-playwright
  3. npm install
  4. npm run build
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions