Replies: 2 comments 2 replies
-
Have you seen https://docs.cypress.io/api/commands/task.html#Syntax I feel like thats what you're asking to do if I understood you correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey, @herecydev tks for the reply. Actually, I am using the cy.task() for some routines. The problem regarding the opened thread is in how to identify when a retry attempt of failing testing is being executed and then do some action right after that attempt, in my example, a cleanDB method (already implemented). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is the thing, in the project that I am working on, I would like to run a resetDB command only when necessary instead of executing every spec on hooks (e.g when a test fails and a retry is performed). I haven't found anything on cypress runners that could be used on this task.
Currently, I am using a great solution from this thread to not upload test videos on CI when test success.
What I am looking for is something like these experimental events. I haven't found retries or attempts as an event listener option and the after in this case cant consider the attempts because it will not be an end process like the result before finishing all attempts.
Am I missing something that we already have?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions