feat: allow to rerun only failed tests (ui) #29587
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
This change allows users to rerun large datasets more efficiently by skipping tests that have already been passed, thereby saving significant time.
The Cypress UI and app-runner.
Before the runner aborts its current run, it gathers information about which tests passed during the run. This data is then saved and can be used to skip those tests in subsequent runs (by forcing test.pending to true, similar to what it.skip does).
Ideally, this information would be saved to a file on the user's system. However, due to some issues we've encountered, the current implementation stores this data in a window variable instead.
Steps to test
Open Cypress and click on the new red button next to the old rerun tests button
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?