Cypress · Junior · Question 17 of 75
What does { force: true } on a click do, and why is it risky?
- 1Makes the click wait for the network to be idle
- 2Skips actionability checks, which can hide real UI bugs
- 3Clicks twice as hard to make sure the event registers
Show the answer
Correct answer: Skips actionability checks, which can hide real UI bugs
Explanation
If a modal covers a button, a real user can't click it. Forcing the click makes the test pass anyway.