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
For a login logic where cy.session() is used, along with the validate option, the below error is thrown by Cypress when the validation of the session fails.
Following this, the session is not recreated, and the old, invalid session is used, failing the test.
Desired behavior
The cy.session() validate option should work as expected, recreating the session in case the validation fails.
Test code to reproduce
Create a session for which the validation will fail; the above error should be ecountered; session will not be recreated.
Cypress Version
8.3.0
Other
N/A
The text was updated successfully, but these errors were encountered:
Current behavior
For a login logic where cy.session() is used, along with the validate option, the below error is thrown by Cypress when the validation of the session fails.
Following this, the session is not recreated, and the old, invalid session is used, failing the test.
Desired behavior
The cy.session() validate option should work as expected, recreating the session in case the validation fails.
Test code to reproduce
Create a session for which the validation will fail; the above error should be ecountered; session will not be recreated.
Cypress Version
8.3.0
Other
N/A
The text was updated successfully, but these errors were encountered: