Skip to content

Run JS tests in Playwright Firefox alongside Chromium - #1380

Merged
sargunv merged 7 commits into
mainfrom
cursor/js-test-browser-floor-easy-9425
Sep 11, 2026
Merged

Run JS tests in Playwright Firefox alongside Chromium#1380
sargunv merged 7 commits into
mainfrom
cursor/js-test-browser-floor-easy-9425

Conversation

@sargunv

@sargunv sargunv commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Partial work on #1169. This adds Firefox coverage; WebKit and a published browser floor are not part of this PR.

Description

mise run test:js installs Playwright Firefox alongside Chromium and runs both JS test suites in each browser. Firefox is headless except on Linux, where headless Firefox has no WebGL, so the task runs it headed under Xvfb. The JS CI variant is renamed from chromium to chromium-firefox, and the antimeridian query test now settles before reading both world copies, which Firefox on Linux otherwise raced.

Validation

mise run check, mise run ci:test-scripts, and mise run test:js on macOS (631 cases each in ChromeHeadless 151 and Firefox 153, no Firefox window). The CI JS job passes the same suites on Linux under Xvfb.

AI assistance

Cursor Grok 4.6 (Cloud Agent) for the initial draft; Claude Code (Fable 5.1) for the rebase, headless switch, and review fixes.

@sargunv
sargunv temporarily deployed to cloudflare-pages September 9, 2026 09:06 — with GitHub Actions Inactive
@cursor cursor Bot changed the title Document that JS tests run one Playwright Chromium Run JS tests in Playwright Firefox alongside Chromium Sep 9, 2026
cursoragent and others added 4 commits September 10, 2026 22:51
The suite does not use the Chrome, Firefox, or Edge binaries on GitHub's
Ubuntu image, and Safari is not available there. Print the Chromium version
from test:js so CI logs identify the browser that actually ran.

Co-authored-by: github.boned427 <github.boned427@passmail.net>
Install Firefox the same way as Chromium, point FIREFOX_BIN at it, and
launch headed Firefox under Xvfb on Linux so MapLibre can get a WebGL
context. Firefox headless still has no WebGL.

Co-authored-by: github.boned427 <github.boned427@passmail.net>
useFirefox() pulls that Karma plugin; the lockfile has to list it.

Co-authored-by: github.boned427 <github.boned427@passmail.net>
@sargunv
sargunv force-pushed the cursor/js-test-browser-floor-easy-9425 branch from a4dc76b to b2c66be Compare September 11, 2026 05:53
@sargunv
sargunv deployed to cloudflare-pages September 11, 2026 05:54 — with GitHub Actions Active
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T06:41:44.664223Z 6d03901 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sargunv
sargunv enabled auto-merge (squash) September 11, 2026 06:47
@sargunv
sargunv merged commit 23e5860 into main Sep 11, 2026
21 checks passed
@sargunv
sargunv deleted the cursor/js-test-browser-floor-easy-9425 branch September 11, 2026 06:54
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.

2 participants