Forcing actionability
Having understood what actionability is, and the checks that are required by Cypress to determine whether an element is actionable or not, it is also important to know how we can override mechanisms set in place by Cypress to check for actionability. In this section, we will focus on performing actions and commands even when the elements do not pass the actionability checks that Cypress enforces for the actionable commands. We will also learn how to safely implement override mechanisms for some elements and tests.
Overriding Cypress actionability checks
Actionability is very useful in Cypress tests as it helps us to find situations where users may not be able to interact with our application elements. At times, though, the actionability checks can get in the way of proper testing, which leads us to our next mission: overriding the safety checks.
In some tests, "acting like a user" may not be worth it as, at the end of the day, the goal is to...