Cypress · Junior · Question 17 of 75

What does { force: true } on a click do, and why is it risky?

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.

Further reading

Problem with a question

Cypress · Junior · question 17

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz