Example:
- I ran the tests in cypress.
- Test accounts have been created
- Next I get a failure in one of the tests
- Test accounts remain created on the server
- After failure, I want to delete the accounts I created. For it, I have the last
deleteCreatedUsers()test, but I don't know how to run it after it fails. Since the tests are interrupted after the first failed test to save time.
I need a solution to run one test after something like after fails
I did try after, afterEach and default condition if(). After fail after, afterEach don't do anything.