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

cy.session option cacheAcrossSpecs is documented but not supported in all versions #4820

Closed
monkpit opened this issue Oct 28, 2022 · 1 comment · Fixed by #4975
Closed

cy.session option cacheAcrossSpecs is documented but not supported in all versions #4820

monkpit opened this issue Oct 28, 2022 · 1 comment · Fixed by #4975

Comments

@monkpit
Copy link

monkpit commented Oct 28, 2022

Screen Shot 2022-10-28 at 11 24 15 AM

https://docs.cypress.io/api/commands/session#Arguments

I found the cacheAcrossSpecs option in the docs for cy.session, added it to my test case with Cypress v9.7.0, and got an error message saying that the only valid option was validate.

image

The docs should be updated to warn the user that the option requires some minimum version of Cypress (not sure which version it is? I checked git blame for files containing cacheAcrossSpecs and I think it might be v10.11.0, but I am not confident about this.

@juanpposada
Copy link

Hi bro, only available from cypress 10.9, for access to this feature i migrate from 9.6 to 11.2 and the cacheAcrossSpecs it's working fine!

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

Successfully merging a pull request may close this issue.

2 participants