Software Testing / Learning brief

Tom looks until the kettle clicks off

What this means in plain language

The Saved message is sometimes a moment late, and Tom's check fails on the build server. A kettle that clicks off shows why an assertion that keeps trying beats one that looks only once.

Understand the full idea, step by step

You put the kettle on. You do not glance once and walk away. You look, and look again, until it clicks off. You give up only if it has not boiled after a long time.

Tom's test must see a Saved message in Daily List, a to-do list app. The message is sometimes a moment late, so a single glance is not enough.

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.

Playwright web-first assertions 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 kettle is a teaching picture.

Sources for this brief — 4 sources
  1. Market practice

    Assertions (Playwright documentation) ↗ — Microsoft (Playwright) · Web-first assertions on a locator, page or response retry until the condition is met or the expect timeout ends; generic assertions such as toBe do not auto-retry; expect.poll and toPass retry more complex conditions (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.

  2. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Use web-first assertions that wait and retry, and avoid checks that run once on a value read from the page (search excerpt, page not opened)

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. 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. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).

  3. Market practice

    Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Reading calls such as isVisible answer at once, while actions wait for the element to be ready (search excerpt, page not opened)

    Says Playwright runs actionability checks (visible, stable, enabled, receives events) before an action and fails with a timeout error if they do not pass in time. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · 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.

  4. 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 HEREWeb-first assertions: expect that keeps tryingCheck the page with an assertion that keeps trying until it is true or time runs out, and keep one-shot checks for values you already hold.Opens at L0 Explain simply · about 18 min

Related briefs

Tom is off on Monday

Tom goes on leave for two weeks and Mei will cover his testing. A week early, Tom writes a note with the state of the release, the decisions he left open and why, where to explore, and who to call.

READ BRIEF

Tom looks inside the test tool

Leo shows Tom how a test tool with a language model inside works. Tom learns its parts, how retrieval brings in team documents, what agents do, and how the tool is tuned and run.

READ BRIEF