Cypress · Junior · Question 59 of 75
What does the Cypress Testing Library add?
- 1A faster runner that replaces Cypress itself
- 2Queries like
cy.findByRolebased on accessible roles - 3Visual comparison of screenshots
Show the answer
Correct answer: Queries like cy.findByRole based on accessible roles
Explanation
Role and label queries mirror how users find elements and encourage accessible markup.