-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: Playwright fix "Old Headless mode has been removed from the Chrome binary" #567
chore: Playwright fix "Old Headless mode has been removed from the Chrome binary" #567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM tks
@@ -25,7 +25,7 @@ const config: PlaywrightTestConfig = { | |||
projects: [ | |||
{ | |||
name: "Google Chrome", | |||
use: { ...devices["Desktop Chrome"], channel: "chrome" }, | |||
use: { ...devices["Desktop Chrome"], channel: "chromium" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "chronium" is the default, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linked resources on Playwright mention to explicitely change "chrome" to "chromium".
In NNS dapp, I fixed it by updating the playwright dependency: dfinity/nns-dapp#6207 |
Thanks. PR replaced by #568 which bumps Playwright |
# Motivation The E2E tests starts failing in the CI (see for example this [job](https://github.com/dfinity/gix-components/actions/runs/12982647342/job/36202745642?pr=548)). > pid=2146][err] Old Headless mode has been removed from the Chrome binary. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell). The issue can be resolved as in NNS dapp by bumping Playwright. See PR [#6207](dfinity/nns-dapp#6207) # Notes Replace PR #567 # Changes - Bump Playwright --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Motivation
The E2E tests starts failing in the CI (see for example this job).
The reason and the solution is explained in this Playwright issue: microsoft/playwright#33566
Playwright documentation about Chromium: https://playwright.dev/docs/browsers#chromium
Issue I opened because I cannot run the Playwright command with the options: microsoft/playwright#34487
Changes
chromium
to download Chrome in the CI