Skip to content

Fix Firefox and WebKit UI e2e runs failing at login - #73872

Merged
potiuk merged 2 commits into
apache:mainfrom
potiuk:fix-e2e-global-setup-browser
Sep 29, 2026
Merged

potiuk merged 2 commits into
apache:mainfrom
potiuk:fix-e2e-global-setup-browser

Conversation

@potiuk

@potiuk potiuk commented Sep 28, 2026

Copy link
Copy Markdown
Member

The e2e global setup logs in with config.projects[0] — always the Chromium project — even when the run is narrowed with --project firefox / --project webkit (config.projects lists every project regardless of --project). Only the selected browser is installed for those runs: by breeze testing ui-e2e-tests --browser <name>, and, since #73183, by the CI workflow too. So the Firefox and WebKit jobs fail at browserType.launch with a missing chrome-headless-shell, and every test then fails on the missing .auth/user.json (seen e.g. on #73852).

Breeze now exports the selected browser as TEST_BROWSER, and global setup logs in with the matching project, falling back to the first project for --browser all and non-breeze runs.

Checked locally: ESLint and Prettier are clean on global-setup.ts, and ruff is clean on the breeze change. tsc -p tsconfig.dev.json reports no new errors (the 3 in global-setup.ts were there before). The command has no unit tests; this PR's own Firefox/WebKit e2e jobs are the verification.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Code (Opus 5.5) following the guidelines

🤖 Generated with Claude Code

The e2e global setup always logged in with the first configured
Playwright project (Chromium), even when a run was narrowed to Firefox or
WebKit. Only the selected browser is installed for such runs, both by
breeze and, since the UI dependency caching change, by the CI workflow, so
the setup could not launch Chromium and every test failed on a missing
auth state file.

Generated-by: Claude Opus 5
@potiuk
potiuk merged commit 3f60fa9 into apache:main Sep 29, 2026
302 of 303 checks passed
@potiuk
potiuk deleted the fix-e2e-global-setup-browser branch September 29, 2026 04:13
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

potiuk added a commit that referenced this pull request Sep 29, 2026
…) (#73879)

* Fix Firefox and WebKit UI e2e runs failing at login

The e2e global setup always logged in with the first configured
Playwright project (Chromium), even when a run was narrowed to Firefox or
WebKit. Only the selected browser is installed for such runs, both by
breeze and, since the UI dependency caching change, by the CI workflow, so
the setup could not launch Chromium and every test failed on a missing
auth state file.

Generated-by: Claude Opus 5

* Guard against a Playwright config without projects in e2e setup
(cherry picked from commit 3f60fa9)


Generated-by: Claude Opus 5

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants