Skip to content

test: update font flooding expectations after ServiceWorkerAutoPreload disable - #34752

Open
cursor[bot] wants to merge 2 commits into
developfrom
fix/font-flooding-sw-autopreload-9467a6e
Open

test: update font flooding expectations after ServiceWorkerAutoPreload disable#34752
cursor[bot] wants to merge 2 commits into
developfrom
fix/font-flooding-sw-autopreload-9467a6e

Conversation

@cursor

@cursor cursor Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor
  • Closes N/A

Additional details

Develop pipeline #86214 for 9467a6e (#34711) failed system-tests-chrome on font_flooding_spec.js:

AssertionError: expected 4 to equal 2

Parent commit 2043773 passed system-tests-chrome; disabling ServiceWorkerAutoPreload on Chrome's browser network path causes two Font network requests per navigation (four across the spec's two visits) instead of one.

This PR updates the capture-protocol font flooding system test to expect four requests on chrome while keeping electron at two.

Steps to test

  1. Run node system-tests/scripts/run.js --glob-in-dir="font_flooding" against a dev build.
  2. Confirm capture-protocol font flooding passes for both chrome and electron.

How has the user experience changed?

No change

PR Tasks

Open in Web View Automation 

Note

Low Risk
Test-only expectation and comment updates; no product or runtime behavior changes.

Overview
Fixes a CI regression in the capture-protocol font flooding system test after Chrome’s browser network path started disabling ServiceWorkerAutoPreload (#34709).

The spec no longer asserts a flat 2 font requests for every browser. It uses EXPECTED_FONT_REQUESTS_BY_BROWSER: 4 for Chrome (two Font requests per navigation across two visits) and 2 for Electron (MITM path unchanged). Comments in the protocol stub and spec document why Chrome differs.

Reviewed by Cursor Bugbot for commit 3884a87. Bugbot is set up for automated code reviews on this repo. Configure here.

…d disable

Disabling ServiceWorkerAutoPreload on Chrome's browser network path
(#34711) issues two Font network requests per navigation instead of one.
Update the capture-protocol font flooding system test to expect four
requests on chrome while keeping electron at two.

Fixes develop pipeline 86214 / system-tests-chrome failure on 9467a6e.

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI babysitter: system-tests-chrome failed again on develop 92784efd (pipeline #86228, job 3969512).

Merged commit only updates v8 snapshot cache files (#34755) — same font_flooding_spec.js failure pattern as pipeline #86214 for 9467a6e. Parent develop commit also had system-tests-chrome failing on pipeline 86226.

Open in Web View Automation 

Sent by Cursor Automation: Monitor cypress/develop for regressions/flake

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI babysitter flagged failures on develop commit e05fbe457ab4022c18fd7218038936df176585bd (merged via PR #34767 — web-config cleanup, unrelated to font flooding).

Failed jobs (linux-x64):

  • system-tests-chrome (3972920)
  • system-tests-chrome-force-http1 (3972915)

Likely root cause: font_flooding_spec.jsnumberOfFontRequests expected 2, got 4 (ServiceWorkerAutoPreload disable regression). Same failure pattern as recent develop pushes (5c783560, 92784efd, b0f01d5).

Pipeline: https://app.circleci.com/pipelines/gh/cypress-io/cypress/86268

This PR appears to address the same issue — please confirm merge readiness.

Open in Web View Automation 

Sent by Cursor Automation: Monitor cypress/develop for regressions/flake

@jennifer-shehane
jennifer-shehane marked this pull request as ready for review September 2, 2026 13:49

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3884a87. Configure here.

const EXPECTED_FONT_REQUESTS_BY_BROWSER = {
chrome: 4,
electron: 2,
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chrome font count ignores MITM path

Medium Severity

EXPECTED_FONT_REQUESTS_BY_BROWSER always expects 4 font requests for chrome, but the extra requests only occur on the browser network path after ServiceWorkerAutoPreload is disabled. Chrome jobs that set CYPRESS_forceHttp1=true stay on the MITM path, so they still see two requests and this assertion fails.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3884a87. Configure here.

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