-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
[Discussion] Should scenarios be a single test ? #43
Comments
Fixed in 1.0.0 :) Again - Thanks so much! |
Is this issue solved, |
How do you preserve cookies through steps? I need to stay logged in within the entire scope of the scenario. I tried |
Hello,
Currently, each step in a scenario becomes a single test in cypress. This is expected and this is the way other cucumber frameworks do it.
However, this goes against cypress recommendations and best bractices because they consider that each test should be independant and able to run alone. This is kind of incompatible with cucumber behavior.
It is not only a "best practice" issue because cypress clears a lot of things between tests : cookies, local storage, session storage, spies, stubs...
This means, for example, I can't set-up a mock in a
given
step and rely on it in a subsequentwhen
orthen
.Possible solutions :
See :
What do you think ?
The text was updated successfully, but these errors were encountered: