Software Testing / Learning brief

Tom draws the plan of the page

What this means in plain language

Leo keeps changing colours, and Tom's screenshot checks break every time. A building plan, not a photograph, shows why a text tree of roles and names is a steadier way to guard the task page.

Understand the full idea, step by step

A photograph of a house shows paint and furniture. A plan shows rooms and doors. Repaint the walls and the photograph is wrong, but the plan is still right.

Tom needs a check for the task page of Daily List, a to-do list app. Leo changes the colours every week. Tom wants a check that works like the plan. Playwright, a free tool that drives a real web browser, has one.

PLAIN WORDS · 2 in this section
repaint
put new paint on a room
playwright
a free Microsoft tool that drives a browser for tests

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Aria snapshots in Playwright as taught in this academy, with an invented app and invented people. Playwright changes often, so check the current guide.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts, and no real run was made. The plan and photograph picture is a teaching picture.

Sources for this brief — 5 sources
  1. Market practice

    Snapshot testing with aria snapshots (Playwright documentation) ↗ — Microsoft (Playwright) · An aria snapshot is a YAML picture of the accessibility tree compared with a template by toMatchAriaSnapshot; a template is a set of constraints, nodes are role, optional name and attributes, patterns go between slashes, and the children property sets contain, equal or deep-equal (search excerpt, page not opened)

    Describes aria snapshots as a YAML Ain't Markup Language (YAML) picture of the accessibility tree that is compared with an expected template using toMatchAriaSnapshot. A template is a set of constraints, not a full copy. Nodes are written as role, optional name and optional attributes in brackets; quoted text is exact and /patterns/ are regular expressions; matching is case-sensitive and order-sensitive; leaving out a name or attribute loosens the match.

    A /children property sets contain (default), equal or deep-equal. An empty template generates one, and templates can live in a .aria.yml file through the name option.

    Page-level assertions arrived in later versions than the first release of the feature. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  2. Market practice

    Accessible Rich Internet Applications (ARIA) 1.2 ↗ — World Wide Web Consortium (W3C) · Roles, names and states are defined in a standard (search excerpt, page not opened)

    Roles, states and properties, and which roles need an accessible name. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Recommendation, 2023. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Using Accessible Rich Internet Applications (ARIA) (W3C Working Group Note) ↗ — World Wide Web Consortium (W3C) · A native element gives a role and a name without extra work (search excerpt, page not opened)

    The first rule of Accessible Rich Internet Applications (ARIA): use a native HyperText Markup Language (HTML) element when one gives the meaning and behaviour needed. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Working Group Note. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Assertions (Playwright documentation) ↗ — Microsoft (Playwright) · Web-first assertions on a locator retry until the condition is met or the expect timeout ends (search excerpt, page not opened)

    Locator/page web assertions re-read current state; generic value assertions do not retry. APIResponse toBeOK checks a fixed captured 2xx status once, as confirmed by the pinned 1.65 matcher implementation; broad guide grouping must not imply a request resend. Soft assertions retain failure state; poll/toPass repeat their callbacks with explicit side-effect and deadline considerations. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  5. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREAria snapshots: checking the page structure as a treeCheck the roles and names that make up a page, as a text tree, so a restyle does not break the test but a lost button or heading does.Opens at L0 Explain simply · about 18 min

Related briefs