The new "toMatchAriaSnapshot" assertion and Aria in Playwright

Nov 28, 2024

Dive into the latest Playwright 1.49 release with Stefan Judis, Playwright ambassador, as he discusses "toMatchAriaSnapshot", a new assertion for end-to-end page validations. In this video, Stefan discusses using recommended Playwright locators, the importance of ARIA and accessibility in end-to-end testing and demonstrates the new "toMatchAriaSnapshot" assertion.

Aria snapshot guide: https://playwright.dev/docs/aria-snapshots
Checkly Synthetic monitoring: https://www.checklyhq.com/product/synthetic-monitoring/
Playwright tips: https://www.youtube.com/playlist

0:00 Intro

0:23 Why Aria and accessibility make sense for Playwright locators.

2:22 Checking elements with "toBeVisible"

3:05 Use Codegen to generate "toMatchAriaSnapshot"

3:41 Replace manual assertions with "toMatchAriaSnapshot"

4:35 Tweak the generated accessibility tree

5:49 Misleading "toMatchAriaSnapshot" errors

6:28 Summary

6:59 Outro

#checkly #playwright #syntheticmonitoring