Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

existingSession.setup is not a function #17806

Closed
alexniculae opened this issue Aug 19, 2021 · 2 comments
Closed

existingSession.setup is not a function #17806

alexniculae opened this issue Aug 19, 2021 · 2 comments

Comments

@alexniculae
Copy link

alexniculae commented Aug 19, 2021

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.
image

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

@Lasidar
Copy link

Lasidar commented Aug 19, 2021

Looks like you and I are having the same issue: #17805! Hopefully we get a response soon :)

@alexniculae
Copy link
Author

Issue is duplicate of #17805. Closing this BUG as we're tracking progress on #17805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants