Skip to content

Commit

Permalink
cherry-pick(#33668): docs(aria): add demo video
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt authored and mxschmitt committed Nov 21, 2024
1 parent 4b0eca4 commit 2ba6448
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 2ba6448

Please sign in to comment.