Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1084/chrome-linux/chrome #84

Closed
kopax-polyconseil opened this issue Nov 7, 2023 · 5 comments · Fixed by #85

Comments

@kopax-polyconseil
Copy link

I had to upgrade from 7.1.1 to 7.1.2 to support Debian 12 here pass-culture/pass-culture-app-native#5550

However, I started to have this error :

browserType.launch: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1084/chrome-linux/chrome
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     yarn playwright install                                             ║
║                                                                         ║
║ <3 Playwright Team                                                      ║
╚═════════════════════════════════════════════════════════════════════════╝
    at TestBrowser.create (/home/runner/work/pass-culture-app-native/pass-culture-app-native/node_modules/@chanzuckerberg/axe-storybook-testing/build/browser/TestBrowser.js:40:69)

I tried to add a step before with yarn playwright install :

yarn run v1.22.19
$ /home/runner/work/pass-culture-app-native/pass-culture-app-native/node_modules/.bin/playwright install
Done in 0.42s.

I expect yarn axe-storybook --build-dir $BUILD_DIR to pass.

Environment :

  • GitHub action Image: ubuntu-22.04
  • node: v18.18.2
  • npm: 9.8.1
  • yarn: 1.22.19

Do you have any clue ?

@ahuth
Copy link
Collaborator

ahuth commented Nov 7, 2023

Oh, seems like Playwright requires a manual install of browsers now, which I forgot about 😬

@kopax-polyconseil, after adding a step for yarn playwright install what happens when you try running axe-storybook-testing, what happens? It's still broken?

@certainlyakey
Copy link

certainlyakey commented Nov 8, 2023

Oh, seems like Playwright requires a manual install of browsers now, which I forgot about 😬

Had the same problem... You need to execute npx playwright install before running the axe-storybook command for the first time. Should this maybe be reflected in the Readme?

@ahuth
Copy link
Collaborator

ahuth commented Nov 8, 2023

Should this maybe be reflected in the Readme?

Yes, definitely. I was waiting to make sure that fixed it for Kopax. But I'll go ahead and add it.

@ahuth
Copy link
Collaborator

ahuth commented Nov 8, 2023

Here's where playwright's behavior changed, I think: microsoft/playwright#26672.

Also realized adding a dep on @playwright/browser-chromium will automatically install it. I'll add that + instructions on installing other browsers.

@ahuth
Copy link
Collaborator

ahuth commented Nov 8, 2023

Should be fixed in v7.1.3, and I've added a note about installing browsers.

Thanks for the report, and let me know if you run into any other issues 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants