Two tests that do the exact same thing yet one fails & one succeed #25350
Unanswered
Oceanestars
asked this question in
Questions and Help
Replies: 1 comment
-
|
Nevermind, the issue was because my back-end was still on the request of the previous test. So it was queuing and failing since the request wasn't done. I just needed to add a cy.wait to make sure the request was done before I went on to another 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.
-
Hi!
I'm very new to cypress and I'm trying my best to organize the test but when I have to two test that require the same endpoint but when I do a get request in one it works but then in the other it doesn't and it can't find the data I'm confused.
When I run both sometimes the first one will say "Timed out retrying after 4000ms: Expected to find content: 'soome-text' within the selector: 'td' but never did." and the other one passes and sometimes it'll be the other way around. Any idea if it's the thread or something else? Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions