Accessibility · Senior · Question 66 of 75
What do Playwright ARIA snapshots compare?
- 1The page's accessibility tree against a YAML template
- 2Screenshots of the page against a stored pixel image
- 3The HTML source against a stored file line by line
Show the answer
Correct answer: The page's accessibility tree against a YAML template
Explanation
toMatchAriaSnapshot catches lost roles and names that visual tests miss.