Switching back and forth between URLs in Cypress #21662
Unanswered
kepstein23
asked this question in
Questions and Help
Replies: 0 comments
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.
-
I'm working on testing an experiment where I should be able to go back and forth between two participants (using 2 different unique URLs) and the app should remember where each participant was in the experiment. The current flow of my test is player1 logs in, views the instructions, clicks next, then moves to a game loading screen (this is because they're waiting on a second player to join). Cypress then visits the player2 url, logs in, clicks next on the instructions, and then both player 1 and 2 should be taken to a discussion screen, but both players end up stuck on game loading. This doesn't happen in my browser, only in cypress, so I'm thinking it has to do with how cypress manages data synchronously vs asynchronously or with cypress' lack of ability to maintain two tabs at once. Does anyone have insight or suggestions for a workaround? Cypress test is below.
Beta Was this translation helpful? Give feedback.
All reactions