Install XQuartz et change settings to Security/Autorise local connections
Run
xhost +localhost
To run in Playwright 1.51,
docker compose run --rm playwright sh -c "npm install && npx playwright test --headed"
To run in 1.41, change version :
- in package.json : set "@playwright/test" version to "1.41.0"
- in docker-compose : set "mcr.microsoft.com/playwright" image version tp "v1.41.0-jammy" Then re-run the previous command.
Compare the execution time of the two tests :
- in 1.51 : about 8s
- in 1.41 : about 2s
No problem without --headed
Since 1.42, Chromium is very very slow.