Skip to content

ci(web): run the site in chromium, firefox and webkit - #1553

Merged
scttbnsn merged 2 commits into
dev/v1.8from
ci/v1.8-web-browser-checks
Nov 2, 2026
Merged

scttbnsn merged 2 commits into
dev/v1.8from
ci/v1.8-web-browser-checks

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

The website's required CI job ran no browser, so a WebKit-only bug could ship (ops X90). This adds Playwright specs against the production next start build on all three engines, inside "Web: Site Build & Scripts Tests", so failures block merging.

They cover nav and the mobile menu, theme persistence with no hydration or console errors, FAQ, 375px overflow on every page type, docs search and the demo failure state. Any console error or CSP violation fails a test. Off-origin requests are stubbed so third parties can't flake a run. Browsers come from the same digest-pinned Playwright image as e2e-playwright, so the job keeps disable-sudo. Egress adds the MCR hosts only.

66 of 66 specs passed locally across the three engines. This PR is the first run on a real runner.

Changelog

  • ✨ Added Playwright browser tests for navigation, mobile menu behavior, theme persistence, FAQ interactions, docs search, mobile overflow, and the demo failure state.
  • 🔧 Changed the required web CI job to run the production site in Chromium, Firefox, and WebKit. The job validates the digest-pinned Playwright image, limits egress to the specified Microsoft container registry hosts, uploads reports on failure, and stops the site after the run.
  • 🔧 Added shared browser-test fixtures for console and page-error checks, CSP diagnostics, off-origin request stubs, hydration waits, and overflow measurements.
  • 🔧 Added Playwright configuration and a server proxy for production-build browser checks.

Concerns

  • The reported 66-spec local pass and first real-runner result are not verified by the supplied change summary.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 9994676 and f14dca4.

Files ignored due to path filters: 1
  • apps/web/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
Files selected for processing: 14
  • .github/tests/web-browser-checks-workflow.test.ts
  • .github/workflows/ci-verify.yml
  • apps/web/.gitignore
  • apps/web/browser-tests/demo.spec.ts
  • apps/web/browser-tests/docs-search.spec.ts
  • apps/web/browser-tests/faq.spec.ts
  • apps/web/browser-tests/fixtures.ts
  • apps/web/browser-tests/layout.spec.ts
  • apps/web/browser-tests/mobile-menu.spec.ts
  • apps/web/browser-tests/navigation.spec.ts
  • apps/web/browser-tests/serve.mjs
  • apps/web/browser-tests/theme.spec.ts
  • apps/web/package.json
  • apps/web/playwright.config.ts

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 3ac05d4 and 9994676.

Files ignored due to path filters: 1
  • apps/web/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
Files selected for processing: 14
  • .github/tests/web-browser-checks-workflow.test.ts
  • .github/workflows/ci-verify.yml
  • apps/web/.gitignore
  • apps/web/browser-tests/demo.spec.ts
  • apps/web/browser-tests/docs-search.spec.ts
  • apps/web/browser-tests/faq.spec.ts
  • apps/web/browser-tests/fixtures.ts
  • apps/web/browser-tests/layout.spec.ts
  • apps/web/browser-tests/mobile-menu.spec.ts
  • apps/web/browser-tests/navigation.spec.ts
  • apps/web/browser-tests/serve.mjs
  • apps/web/browser-tests/theme.spec.ts
  • apps/web/package.json
  • apps/web/playwright.config.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

Adds Playwright browser tests for web page behavior, navigation, theme controls, and responsive layout. Adds shared test fixtures and a server proxy. Updates CI to run Chromium, Firefox, and WebKit checks against the production build, and to upload reports when checks fail.

Possibly related PRs

  • CodesWhat/drydock#1539: Adds website routes and comparison-page behavior that this PR exercises in browser tests.

Change: Other

Merge Risk: Minimal · previous review 99946

No identified issue blocks merging. The first real-runner CI execution remains the normal confirmation for these new browser checks.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Comment thread apps/web/browser-tests/fixtures.ts Fixed
@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The web job only built the site and ran node:test scripts, so a
browser-specific bug (a WebKit menu bug shipped this way on a sister
project) could not fail CI. Add Playwright specs under apps/web that run
against the production build and run them inside the required job.

The run uses the digest-pinned Playwright image because Harden Runner
disables sudo, which install --with-deps needs.
@scttbnsn
scttbnsn force-pushed the ci/v1.8-web-browser-checks branch from 9994676 to f14dca4 Compare November 2, 2026 09:39
@scttbnsn
scttbnsn merged commit 1adfe24 into dev/v1.8 Nov 2, 2026
35 checks passed
@scttbnsn
scttbnsn deleted the ci/v1.8-web-browser-checks branch November 2, 2026 10:00
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