Skip to content

Fix Playwright install on Ubuntu 26.04 runners in the E2E workflow - #590

Merged
rtio merged 2 commits into
trunkfrom
fix/e2e-playwright-ubuntu-26-04
Nov 12, 2026
Merged

rtio merged 2 commits into
trunkfrom
fix/e2e-playwright-ubuntu-26-04

Conversation

@rtio

@rtio rtio commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

All Submissions:

  • Does your code follow the WooCommerce Sniffs variant of WordPress coding standards?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Will this change require new documentation or changes to existing documentation?

Changes proposed in this Pull Request:

The four E2E jobs fail at "Install playwright" since ubuntu-latest moved to Ubuntu 26.04, which Playwright 1.54.2 does not support ("Playwright does not support chromium on ubuntu26.04-x64"). This bumps @playwright/test to 1.61.1 and no further: 1.61.0 is the first release that supports Ubuntu 26.04, 1.64 changes iframe visibility, and 1.65 is no longer tested on Node.js 20, which .nvmrc selects.

It also fixes "Gift card recipient email" in b8.gift-card-product.spec.js, which opened the first Email Log row and failed when that row was not the gift card email. The test now picks the row by subject, as d5.cash-app-pay-gift-card-product.spec.js does.

Steps to test the changes in this Pull Request:

  1. Check that the four "Run E2E tests" jobs on this pull request get past "Install playwright".
  2. Check that their tests pass.

Changelog entry

Dev - Bump Playwright to 1.61.1 so the E2E tests run on Ubuntu 26.04 runners.

🤖 Generated with Claude Code

Closes #591

The E2E workflow runs on `ubuntu-latest` and installs Chromium with
`npx playwright install --with-deps chromium`. The lockfile pinned
Playwright 1.54.2.

`ubuntu-latest` now resolves to the `ubuntu-26.04` image. Playwright
1.54.2 does not know that release, so the install step exits with
"Playwright does not support chromium on ubuntu26.04-x64" and all four
E2E jobs fail before any test runs. The last passing run, on
2026-11-04, still got `ubuntu-24.04`.

Bump `@playwright/test` to 1.61.1. Playwright 1.61.0 is the first
release that supports Ubuntu 26.04 ("Playwright now supports Ubuntu
26.04" in its release notes), and 1.61.1 is its latest patch. Chromium
moves from 139 to 149.

Stop at 1.61 on purpose. 1.64 changes how device descriptors and
elements inside hidden iframes behave, and 1.65 is no longer tested on
Node.js 20, which `.nvmrc` still selects. Going further belongs with a
Node.js bump.

Only `package.json` and `package-lock.json` change, and only the three
Playwright packages move in the lockfile.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This is linked to GitHub issue #591.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Test the build

WordPress Playground - runs in your browser

ℹ️ Neither can connect to Square: signing in to Square has to send you back to the site, and a site that runs in your browser tab has no public address to come back to. Without a connection the store cannot take payments, sync products or receive webhooks, so the previews show what a merchant sees before connecting. Do not enter Square access tokens or other credentials in a preview. The links stop working 14 days after the last build.


Build info:

  • Latest commit: a4c7406
  • Build time: 2026-11-12 20:22:17 UTC

Note: the build is updated when a new commit is pushed to this PR.

@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

"Gift card recipient email" in `b8.gift-card-product.spec.js` opened
the first row of the Email Log and expected the gift card email there.

Buying a gift card sends three emails: the customer's order email, the
admin's new order email and the recipient's gift card email. The Email
Log sorts by sent time only. When all three are logged in the same
second, the gift card email is not first, the test opens an order
email, and it fails on every retry because the log does not change.
That happened on the first E2E run on Ubuntu 26.04 runners: the three
emails shared one timestamp and the gift card email was third.

Pick the row by its subject instead, as the same check in
`d5.cash-app-pay-gift-card-product.spec.js` already does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rtio
rtio marked this pull request as ready for review November 12, 2026 22:28
@rtio
rtio merged commit ad1f860 into trunk Nov 12, 2026
17 of 18 checks passed
@rtio
rtio deleted the fix/e2e-playwright-ubuntu-26-04 branch November 12, 2026 22:41
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.

Tracking Issue for PR #590: Fix Playwright install on Ubuntu 26.04 runners in the E2E workflow

1 participant