Skip to content

Commit

Permalink
docs(aria): add demo video (#33668)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt authored Nov 20, 2024
1 parent bfd64ac commit 81e28a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/aria-snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
id: aria-snapshots
title: "Aria snapshots"
---
import LiteYouTube from '@site/src/components/LiteYouTube';

## Overview

In Playwright, aria snapshots provide a YAML representation of the accessibility tree of a page.
These snapshots can be stored and compared later to verify if the page structure remains consistent or meets defined
expectations.

<LiteYouTube
id="P4R6hnsE0UY"
title="Getting started with ARIA Snapshots"
/>

The YAML format describes the hierarchical structure of accessible elements on the page, detailing **roles**, **attributes**, **values**, and **text content**.
The structure follows a tree-like syntax, where each node represents an accessible element, and indentation indicates
nested elements.
Expand Down

0 comments on commit 81e28a8

Please sign in to comment.