Explore allowing cy
command usage in cy.intercept
callbacks
#7667
Labels
pkg/driver
This is due to an issue in the packages/driver directory
topic: cy.intercept()
type: enhancement
Requested enhancement of existing feature
Current behavior:
cy
commands are not explicitly treated differently when called from insidecy.route2
callbacks.Desired behavior:
Cypress generally stops users from writing non-deterministic tests, and using cy commands inside of request/response callbacks would cause non-determinism.
cy
commands should fail when called from insidecy.route2
callbacks with a clear error message explaining why.Perhaps cy.now should remain, so users can have a backdoor to access Cypress commands directly
The text was updated successfully, but these errors were encountered: