Is there a way to skip a test that has already started? #9346
Unanswered
biltongza
asked this question in
Questions and Help
Replies: 2 comments 2 replies
-
It sounds like making use of You can start the test as normal, at at the point in the test you've decided you no longer wish to proceed, use There's a description of how to use this here: http://mochajs.org/#inclusive-tests . Hope this helps! |
Beta Was this translation helpful? Give feedback.
2 replies
-
Take a look at https://github.com/cypress-io/cypress-skip-test |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a web form that continuously runs validation in the background when form controls change. At the moment, we don't have full control of the backend's state so when we run the same form inputs every day, they get picked up as duplicates and it breaks our test (timing out waiting for something to be visible).
I've managed to get to a point where I can detect the first validate call we run, inspect it for errors, and fail immediately by throwing a javascript error with a descriptive message.
This is a decent start, but I'd like to report these tests as skipped or pending instead of failed, separating them from the other failed tests. We know this scenario and would like to exclude it from "real" failed scenarios where something else has gone wrong that we aren't expecting.
Obviously the correct way to handle this scenario is to put the backend into a known state where our tests can run and reset the state between runs. It's something we are working towards but we are looking for an interim solution.
Is there any way to change how cypress reports these tests? Can I skip the test if it has already started?
Beta Was this translation helpful? Give feedback.
All reactions