Cypress · Junior · Question 74 of 75
How does Cypress handle a click that triggers navigation?
- 1It keeps running commands on the old page
- 2It fails, because navigation stops the test
- 3It waits for the new page to load, then continues
Show the answer
Correct answer: It waits for the new page to load, then continues
Explanation
Cypress detects page loads and waits for them, then continues on the new page.