Playwright · Middle · Question 65 of 75
What does toMatchAriaSnapshot compare?
- 1Two screenshots of the same page pixel by pixel
- 2The HTML source against a saved HTML file
- 3The accessibility tree against a YAML template
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.