Skip to content

E2E workflow hangs after Playwright Chromium download on GitHub Actions #2

Description

@Matt-Anis

Problem

The current E2E workflow gets stuck after the Playwright Chromium download completes (100%) and never proceeds to the next step, eventually getting killed by the job timeout with Error: The operation was canceled.

npx playwright install chromium --with-deps downloads a 170MB binary and then hangs silently during the post-extraction phase on ubuntu-latest runners. This is unnecessary because GitHub Actions runners already have Google Chrome pre-installed.

Fix:

Remove the browser install step and add channel: 'chrome' to playwright.config.js to use the system Chrome instead.

See PR #1 for the full fix.

Workaround (until PR is merged):

In playwright.config.js:

jsprojects: [
  {
    name: 'chromium',
    use: { ...devices['Desktop Chrome'], channel: 'chrome' },
  },
],

And remove the npx playwright install chromium --with-deps step from the workflow.

thanks :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions