Skip to content

test: require the full Chromium in the playwright feature tests - #27

Merged
ashwin153 merged 2 commits into
mainfrom
test/playwright-full-chromium
Oct 5, 2026
Merged

ashwin153 merged 2 commits into
mainfrom
test/playwright-full-chromium

Conversation

@ashwin153

@ashwin153 ashwin153 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

The playwright feature's tests checked ls /usr/local/share/ms-playwright | grep -q chromium, which the chromium_headless_shell-* directory alone satisfies. If a future Playwright stopped downloading the full browser, the tests would still pass, while headed runs and the sandbox's remote browser (which looks for chromium-*/chrome-linux*/chrome) would break.

Both scenarios now assert that the full browser binary exists and is executable at chromium-*/chrome-linux*/chrome (chrome-linux64 on amd64, chrome-linux on older and arm64 builds).

Test-only change: install.sh is untouched, so there's no feature version bump. I checked the glob against a real browsers directory: it matches the full install and fails on a directory that has only the headless shell, which the old grep let through.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCDUvJ2D9CySZKiuBKRmx9


Generated by Claude Code


Note

Low Risk
Test-only assertion changes with no install or runtime behavior modified.

Overview
Tightens Playwright feature tests so they fail if only the headless Chromium shell is installed, not the full browser.

Both ubuntu.sh and ubuntu_no_node.sh replace a directory-name grep chromium check with a shared full_chromium() helper that requires an executable at chromium-*/chrome-linux*/chrome under PLAYWRIGHT_BROWSERS_PATH. That matches what headed runs and the remote browser path expect, so a future install that dropped the full browser would no longer slip through tests.

Reviewed by Cursor Bugbot for commit d38726d. Configure here.

The old check grepped the browsers directory for "chromium", which the
headless shell's directory alone satisfies. Assert the full browser binary
instead, since headed runs and the sandbox's remote browser need it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCDUvJ2D9CySZKiuBKRmx9
@greptile-apps

greptile-apps Bot commented Oct 5, 2026

Copy link
Copy Markdown

Automatic reviews are disabled for this repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCDUvJ2D9CySZKiuBKRmx9
@ashwin153
ashwin153 merged commit 91e43b6 into main Oct 5, 2026
2 checks passed
@ashwin153
ashwin153 deleted the test/playwright-full-chromium branch October 5, 2026 10:48
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