Skip to content

chore(e2e): update Cypress and modernize browser configuration - #5306

Open
ScriptedAlchemy wants to merge 1 commit into
mainfrom
fix/cypress-modern-config
Open

ScriptedAlchemy wants to merge 1 commit into
mainfrom
fix/cypress-modern-config

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Member

Updates the repository's pinned Cypress from 16.1.1 to 16.4.0 and adopts the current browser and origin configuration. This is a standalone change based on main, covering the repository's Cypress setup and local/CI entry points.

Cypress 16.4.0 includes the recent Chrome compatibility and native networking fixes. The configuration follows the Cypress migration guide: use installed Chrome and remove legacy document-domain injection.

Changes

  • Set defaultBrowser: 'chrome' in all 14 Cypress configurations, remove the 11 injectDocumentDomain settings, and switch the 15 explicit Electron script overrides to Chrome.
  • Pin Cypress 16.4.0. The lockfile changes only Cypress and its required systeminformation update; all other dependency resolutions remain unchanged.
  • Use pnpm exec cypress install in 11 workflows and the local CI runners so installation always uses the workspace's pinned CLI.
  • Remove embedded recording-key arguments from app scripts. Document optional recording through CYPRESS_RECORD_KEY, Chrome setup, and origin handling in CONTRIBUTING.md.

All 27 existing Cypress spec files and their assertions are preserved. The navigation audit found that each test stays on its first visited origin, including standalone router tests on different localhost ports. Those tests can use Cypress's normal isolation without cy.origin() wrappers. The contributor guidance explains when same-test secondary-origin navigation does require cy.origin().

Validation

Passed with Node 24.22.3 and pnpm 10.28.0:

  • pnpm install --frozen-lockfile --lockfile-only --ignore-scripts — all 104 workspace projects.
  • Frozen installation of the isolated, pinned Cypress CLI — 169 packages; CLI reports 16.4.0.
  • Prettier 3.8.1 checks of changed files, respecting repository configuration and ignore rules.
  • TypeScript 6.0.3 checks of all 14 configs against the actual Cypress 16.4.0 declarations, plus successful imports through its defineConfig.
  • node --test tools/scripts/ci-is-affected.test.mjs — 19/19 passing.
  • node --check for both changed local runner modules and git diff --check.

Local browser E2E runs are blocked: pnpm exec cypress install receives HTTP 403 from the Cypress binary download endpoint, and the container has no working Chrome or Xvfb installation. The matching local CI jobs therefore could not be completed; browser validation is delegated to the PR's Actions runs.

The existing parent workflow exercises the runtime, router, manifest, and Next ports 3000–3002 Cypress suites. Other retained standalone configs receive static validation here; the Modern SSR job checks manifests, the bundle-size job measures builds, and the shared-tree-shaking workflow is not called by the parent. This PR does not expand those existing coverage paths.

Pin Cypress 16.4.0, use installed Chrome, and remove legacy document-domain injection. Keep workflow and local installation on the workspace CLI and move optional recording keys to environment configuration.
@changeset-bot

changeset-bot Bot commented Nov 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0872f12

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T21:38:58.007564Z 0872f12 PR opened
ℹ️ 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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@0872f12

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@0872f12

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@0872f12

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@0872f12

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@0872f12

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@0872f12

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@0872f12

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@0872f12

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@0872f12

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@0872f12

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@0872f12

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@0872f12

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@0872f12

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@0872f12

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@0872f12

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@0872f12

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@0872f12

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@0872f12

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@0872f12

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/@module-federation/observability-plugin@0872f12

@module-federation/playground

pnpm add https://pkg.pr.new/@module-federation/playground@0872f12

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@0872f12

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@0872f12

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@0872f12

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@0872f12

@module-federation/rstest

pnpm add https://pkg.pr.new/@module-federation/rstest@0872f12

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@0872f12

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@0872f12

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@0872f12

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@0872f12

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@0872f12

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@0872f12

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@0872f12

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@0872f12

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@0872f12

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@0872f12

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@0872f12

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@0872f12

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@0872f12

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@0872f12

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@0872f12

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@0872f12

commit: 0872f12

@github-actions

Copy link
Copy Markdown
Contributor

Deploying with ☁️ Zephyr Cloud

The latest preview deployments for this pull request.

Status Name Latest Commit Version URL Updated (UTC)
✅ Deployment successful!
View deployment
website-new 0872f12 Version ↗ 28 Nov 2026, 21:40

Affected deployment targets

Application Type Target
website-new Environment latest ↗
website-new Tag latest ↗
website-new Tag web_fix-cypress-modern-config_nestor_lopez ↗

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

7 package(s) changed, 36 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/playground 16.11 MB -710 B (-0.0%) 45.8 kB no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB +3 B (+0.1%) 2.4 kB -32 B (-1.3%)
@module-federation/core 1.0 kB -3 B (-0.3%) 1.0 kB -35 B (-3.2%)
@module-federation/devtools 30.3 kB -9 B (-0.0%) 30.3 kB -35 B (-0.1%)
@module-federation/enhanced 2.7 kB +2 B (+0.1%) 2.8 kB -46 B (-1.6%)
@module-federation/metro-plugin-rnc-cli 416 B +1 B (+0.2%) 435 B -27 B (-5.8%)
@module-federation/node 9.1 kB +3 B (+0.0%) 9.1 kB -31 B (-0.3%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 23.6 kB -3 B (-0.0%) 25.2 kB -2 B (-0.0%) +1.6 kB +1 B

Total dist (raw): 23.74 MB (-710 B (-0.0%))
Total ESM gzip: 112.5 kB (no change)
Total web bundle (gzip): 258.1 kB (-3 B (-0.0%))
Total node bundle (gzip): 260.2 kB (-206 B (-0.1%))
Tracked ./bundler entry gzip: 563 B (no change)
Tracked ./bundler web bundle (gzip): 5.8 kB (no change)
Tracked ./bundler node bundle (gzip): 5.8 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

This branch has not been deployed

No deployments
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.

1 participant