Playwright · Middle · Question 65 of 75

What does toMatchAriaSnapshot compare?

Show the answer

Correct answer: The accessibility tree against a YAML template

Explanation

ARIA snapshots check roles, names and structure. They're less fragile than pixel snapshots and also catch accessibility regressions.

Further reading

Problem with a question

Playwright · Middle · question 65

Test yourself

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

Take this quiz