Repository navigation
chore(e2e): update Cypress and modernize browser configuration - #5306
ScriptedAlchemy wants to merge 1 commit into
Conversation
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.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
@module-federation/devtools
@module-federation/cli
create-module-federation
@module-federation/dts-plugin
@module-federation/enhanced
@module-federation/error-codes
@module-federation/esbuild
@module-federation/managers
@module-federation/manifest
@module-federation/metro
@module-federation/metro-plugin-rnc-cli
@module-federation/metro-plugin-rnef
@module-federation/metro-plugin-rock
@module-federation/modern-js
@module-federation/modern-js-v3
@module-federation/native-federation-tests
@module-federation/native-federation-typescript
@module-federation/nextjs-mf
@module-federation/node
@module-federation/observability-plugin
@module-federation/playground
@module-federation/retry-plugin
@module-federation/rsbuild-plugin
@module-federation/rspack
@module-federation/rspress-plugin
@module-federation/rstest
@module-federation/runtime
@module-federation/runtime-core
@module-federation/runtime-tools
@module-federation/sdk
@module-federation/storybook-addon
@module-federation/third-party-dts-extractor
@module-federation/treeshake-frontend
@module-federation/treeshake-server
@module-federation/typescript
@module-federation/utilities
@module-federation/webpack-bundler-runtime
@module-federation/bridge-react
@module-federation/bridge-react-webpack-plugin
@module-federation/bridge-shared
@module-federation/bridge-vue3
@module-federation/inject-external-runtime-core-plugin
commit: |
Deploying with ☁️ Zephyr CloudThe latest preview deployments for this pull request.
Affected deployment targets
|
Bundle Size Report7 package(s) changed, 36 unchanged. Package dist + ESM entry
Bundle targets
Consumer scenarios
Total dist (raw): 23.74 MB (-710 B (-0.0%)) Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as |
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
defaultBrowser: 'chrome'in all 14 Cypress configurations, remove the 11injectDocumentDomainsettings, and switch the 15 explicit Electron script overrides to Chrome.systeminformationupdate; all other dependency resolutions remain unchanged.pnpm exec cypress installin 11 workflows and the local CI runners so installation always uses the workspace's pinned CLI.CYPRESS_RECORD_KEY, Chrome setup, and origin handling inCONTRIBUTING.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 requirecy.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.defineConfig.node --test tools/scripts/ci-is-affected.test.mjs— 19/19 passing.node --checkfor both changed local runner modules andgit diff --check.Local browser E2E runs are blocked:
pnpm exec cypress installreceives 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.