dennisbergevin / cypress-plugin-last-failed

A companion Cypress plugin for `cy-grep` that re-runs the last failed test(s).
MIT License
12 stars 2 forks source link

feat: Reset failedTestToggle when switching specs in open mode #6

Closed dennisbergevin closed 4 months ago

dennisbergevin commented 4 months ago

Relates to: #5

When a user changes specs in open mode while the failed test toggle is checked, the user experience is that the next spec will show no available tests.

This effort adds logic for the failedTestToggle to be reset when changing specs in open mode, so that when a user leaves the spec they currently are filtering for failed tests, the new spec will have a clean unfiltered state.