garris / garris/BackstopJS

Playwright not finding the browsers binaries

Open
#1,454 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hello team, currently we are running backstopjs with playwright.

We are running into a situation where the backstopjs is looking for some browsers binaries with a specific version. Meanwhile the playwright install is installing a different set of binaries.

Is there a way to sync them?
This is almost how it looks in the pipeline:
`$ npx playwright install --with-deps`

> Chromium 109.0.5414.46 (playwright build v1041) downloaded to /builds//node_modules/playwright-core/.local-browsers/chromium-1041
> FFMPEG playwright build v1008 downloaded to /builds//node_modules/playwright-core/.local-browsers/ffmpeg-1008
> Firefox 107.0 (playwright build v1369) downloaded to /builds//node_modules/playwright-core/.local-browsers/firefox-1369
> Webkit 16.4 (playwright build v1751) downloaded to /builds//node_modules/playwright-core/.local-browsers/webkit-1751

`$ backstop test --config backstop.config.js`

> BackstopJS v6.1.0
> Loading config: /builds//backstop.config.js
> COMMAND | Executing core for "test"
> createBitmaps | Selected 51 of 51 scenarios.
> Creating Browser
> No Playwright browser specified, assuming Chromium.
> COMMAND | Command "test" ended with an error after [0.072s]
> COMMAND | browserType.launch: Executable doesn't exist at /builds//node_modules/backstopjs/node_modules/playwright-core/.local-browsers/chromium-1005/chrome-linux/chrome

Any idea how we can tell Playwright and BackstopJs which versions to use?

Contributor guide

Open the contributing guide

Research direction

Start with the reported commands, `npx playwright install --with-deps` and `backstop test --config backstop.config.js`, then inspect `backstop.config.js` and the two `playwright-core` locations shown in the error. Determine why BackstopJS requests Chromium 1005 while Playwright installs 1041, and confirm that the selected browser binaries are compatible and launch successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, playwright
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.