fix: (driver) - Fix for introduced regression in cy.route #8215
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.
Fix for introduced regression from #7983 in cy.route fixture inside the route command
First of all I'm sorry for introduced regression. I didn't mean to and I hope you will forgive me :) I've decided to revert some of my changes related to load fixture in
cy.route
. The only thing I left is a improved error message in case when fixture doesn't exist.cy.route
withfx
andfixture
shortcut take longer to load, sometimes timeout. #8181User facing changelog
Revert the code that tries to load a fixture inside a cy.route command.
Additional details
We don't need to try load a fixture inside a cy.route. Error message has been improved, but it will show up only when user waits for a stubbed route or returns a rejected promise from custom command.
In every other case, test will be not marked as failed (even when fixture has not been found).
How has the user experience changed?
Previous behaviour of
cy.route
has been restored. Error message in case of missing fixture has been improved.PR Tasks