Skip to content

Conversation

@AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Dec 23, 2025

  • Closes

eventually will close in favor of #32926

Additional details


Note

Makes experimentalRunAllSpecs available for Component Testing and wires up dev servers and runtime to load multiple specs at once.

  • Allow experimentalRunAllSpecs in root CoreConfigOptions; remove e2e-only validation/error and update typings/store logic to permit CT
  • Vite client (initCypressTests.js): when specPath or spec is __all, import all selected specs via @fs; add comprehensive unit tests
  • Webpack loader: shouldLoad handles __all; server socket updates CT dev-server to compile all specs when receiving RUN_ALL_SPECS_KEY
  • HtmlDataSource: injects window.__RUN_ALL_SPECS__; add CT e2e/system tests and sample projects for Vite and Webpack
  • Changelog entry and minor tooling tweaks (e.g., watch script args)

Written by Cursor Bugbot for commit 1c122f3. This will update automatically on new commits. Configure here.

Steps to test

How has the user experience changed?

PR Tasks

scottohara and others added 15 commits November 11, 2025 10:19
…ew projects, run-all-specs-ct-vite and run-all-specs-ct-webpack to test experimentalRunAllSpecs for component testing
<body>
<script>
window.__RUN_MODE_SPECS__ = ${JSON.stringify(this.ctx.project.specs)}
<!-- __RUN_ALL_SPECS__ is only set if experimentalRunAllSpecs is set to true -->
Copy link

Choose a reason for hiding this comment

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

HTML comment inside script tag causes syntax error

An HTML comment (<!-- ... -->) is placed inside a <script> tag, but HTML comments are not valid JavaScript syntax. When the browser attempts to execute this script, it will throw a syntax error like "Unexpected token '<'", breaking the entire Cypress app initialization. The comment needs to use JavaScript syntax (// ...) instead of HTML comment syntax.

Fix in Cursor Fix in Web

@cypress
Copy link

cypress bot commented Dec 23, 2025

cypress    Run #68192

Run Properties:  status check passed Passed #68192  •  git commit 1c122f31c7: chore: update protocol snapshot
Project cypress
Branch Review testRunAllSpecsCt
Run status status check passed Passed #68192
Run duration 18m 55s
Commit git commit 1c122f31c7: chore: update protocol snapshot
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 15
Tests that did not run due to a developer annotating a test with .skip  Pending 1098
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 26988
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  44.93%
  Untested elements 196  
  Tested elements 164  
Accessibility  97.94%
  Failed rules  4 critical   8 serious   3 moderate   2 minor
  Failed elements 102  

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.

4 participants