Skip to content

Conversation

@ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Oct 31, 2025

Additional details

Test replay in the dashboard reuses the reporter, but has a slightly different configuration than in the cypress monorepo. The cypress monorepo uses webpack with loose babel config that causes it to be possible for subclasses to override super class properties when useDefineForClassFields is set to true. Test replay uses esbuild as its bundler and there's not really a convenient option to replicate this behavior. I think it makes sense to figure the problem at the source which is that we just don't need to override the property in the subclass.

Steps to test

How has the user experience changed?

PR Tasks


Note

Removes the hooks field from Test to avoid shadowing Runnable’s hooks, while continuing to augment hooks in the constructor.

  • Reporter / Test Model (packages/reporter/src/test/test-model.ts):
    • Remove Test class field hooks (no longer overrides Runnable’s hooks).
    • Continue to build this.hooks in constructor from props.hooks plus synthetic entries ("test body", "studio commands").

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

@cypress
Copy link

cypress bot commented Oct 31, 2025

cypress    Run #67063

Run Properties:  status check passed Passed #67063  •  git commit 9116427241: fix system test
Project cypress
Branch Review ryanm/chore/do-not-override-hooks
Run status status check passed Passed #67063
Run duration 18m 45s
Commit git commit 9116427241: fix system test
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 12
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 26522
View all changes introduced in this branch ↗︎

Warning

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

UI Coverage  45.48%
  Untested elements 188  
  Tested elements 161  
Accessibility  97.98%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 101  

@ryanthemanuel ryanthemanuel merged commit c57bfe0 into develop Nov 1, 2025
90 of 92 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/chore/do-not-override-hooks branch November 1, 2025 14:53
cypress-app-bot pushed a commit that referenced this pull request Nov 2, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 2, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 2, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 2, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 2, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 2, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 3, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 3, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 3, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 3, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 3, 2025
cypress-app-bot pushed a commit that referenced this pull request Nov 3, 2025
jennifer-shehane pushed a commit that referenced this pull request Nov 3, 2025
* chore: updating v8 snapshot cache

* index on develop: c57bfe0 chore: update test-model to not override hooks from runnable (#32867)

* index on develop: c57bfe0 chore: update test-model to not override hooks from runnable (#32867)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
jennifer-shehane pushed a commit that referenced this pull request Nov 3, 2025
* chore: updating v8 snapshot cache

* index on develop: c57bfe0 chore: update test-model to not override hooks from runnable (#32867)

* index on develop: c57bfe0 chore: update test-model to not override hooks from runnable (#32867)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
jennifer-shehane pushed a commit that referenced this pull request Nov 3, 2025
* chore: updating v8 snapshot cache

* index on develop: c57bfe0 chore: update test-model to not override hooks from runnable (#32867)

* index on develop: c57bfe0 chore: update test-model to not override hooks from runnable (#32867)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 4, 2025

Released in 15.6.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.6.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Nov 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants