Accessibility · Middle · Question 66 of 75

How do you run axe in Playwright tests?

Show the answer

Correct answer: Use @axe-core/playwright to scan the page and assert no violations

Explanation

It finds rule-based problems in real pages. You can scan after interactions, for example with a dialog open.

Further reading

Problem with a question

Accessibility · Middle · question 66

Test yourself

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

Take this quiz