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

chore: Playwright fix "Old Headless mode has been removed from the Chrome binary" #567

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Jan 27, 2025

Motivation

The E2E tests starts failing in the CI (see for example this job).

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 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

  • Use channel chromium to download Chrome in the CI

@peterpeterparker peterpeterparker requested review from a team as code owners January 27, 2025 05:38
@peterpeterparker peterpeterparker marked this pull request as draft January 27, 2025 05:44
@peterpeterparker peterpeterparker changed the title chore: Playwright fix "Old Headless mode has been removed from the Chrome binary chore: Playwright fix "Old Headless mode has been removed from the Chrome binary" Jan 27, 2025
@peterpeterparker peterpeterparker marked this pull request as ready for review January 27, 2025 06:17
Copy link
Contributor

@AntonioVentilii AntonioVentilii left a 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" },
Copy link
Contributor

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?

Copy link
Member Author

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".

@dskloetd
Copy link
Collaborator

In NNS dapp, I fixed it by updating the playwright dependency: dfinity/nns-dapp#6207

@peterpeterparker
Copy link
Member Author

Thanks. PR replaced by #568 which bumps Playwright

@peterpeterparker peterpeterparker deleted the chore/fix-Old-Headless-mode-has-been-removed-from-the-Chrome-binary branch January 27, 2025 07:58
peterpeterparker added a commit that referenced this pull request Jan 27, 2025
# 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>
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 this pull request may close these issues.

3 participants