Playwright · Senior · Question 60 of 77
How do you check that every route has no serious accessibility violations?
- 1Use one screenshot test for the home page only
- 2Loop over routes and run axe with a shared fixture
- 3Rely on a linter for the HTML template files
Show the answer
Correct answer: Loop over routes and run axe with a shared fixture
Explanation
A fixture configured with the team's rules makes the check consistent; failures list the rule, element and fix.