You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read some issues that reported this same bug that I'm experiencing, but in some of them it was said that it is expected, and the routes should indeed be reset between tests. The recent pull request #4176 was supposed to close the issue #1183 , but the issue remains.
Current behavior
Routes are being reset between tests.
Test 1:
Test 2:
Result:
Desired behavior
The route for the endpoint "/todos/1" should not be reset between Test 1 and Test 2
The closing of #1183 allows you to not have to redefine cy.server() in between tests, so it will only need to be defined once.
That fix has no effect on the defined aliases. Defined aliases (like your @test) will still be reset between each test and cannot be defined in a before hook. Duplicate of #665
I've read some issues that reported this same bug that I'm experiencing, but in some of them it was said that it is expected, and the routes should indeed be reset between tests. The recent pull request #4176 was supposed to close the issue #1183 , but the issue remains.
Current behavior
Routes are being reset between tests.

Test 1:
Test 2:

Result:

Desired behavior
The route for the endpoint "/todos/1" should not be reset between Test 1 and Test 2
Test code to reproduce
Versions
Windows 10
Chrome 85
Cypress 5.2.0*
*Cypress 5.2.0 has a bug that we can't match routes with external url's. So I used the branch from PR #8662
The text was updated successfully, but these errors were encountered: