Software Testing / Learning brief

Tom stops guessing when the pot boils

What this means in plain language

Tom's count check fails because a background job is a few seconds late. A pot-on-the-stove story shows polling, retrying blocks, and why a click must never sit inside a block that repeats.

Understand the full idea, step by step

A cook who sets a timer for ten minutes may serve cold soup or burn it. A better cook looks at the pot every little while and takes it off the heat at the first boil.

Tom's test was the first kind of cook. It guessed a time and hoped.

It was time to learn the second kind, who looks at the pot.

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 Test as taught in this academy, with an invented app and invented people. Tool details come from vendor reference pages seen only as search excerpts.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The pot is a teaching picture. The site address is a teaching address that does not exist.

Sources for this brief — 4 sources
  1. Market practice

    Assertions (Playwright documentation) ↗ — Microsoft (Playwright) · expect.poll turns an assertion on a value into a polling one, with a default timeout of five seconds and default intervals of 100, 250, 500 and 1000 milliseconds; expect(callback).toPass retries a whole block and by default has a timeout of 0 (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) · Test user-visible behaviour, keep tests isolated, and prefer web-first assertions (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) · Playwright runs actionability checks before an action and fails with a timeout error if they do not pass in time (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 HEREPolling and retrying blocks: expect.poll and toPassWait for a value that is not on the page, such as an answer from the server, by checking again and again until it is right or time runs out.Opens at L0 Explain simply · about 17 min

Related briefs

Tom marks the stops

Tom practises building keywords and choosing regression tests after a change. A phrase book and a trip plan show him how.

READ BRIEF

Tom and the new pot

Tom tests supported Daily List upgrade and recovery paths with synthetic old data. A plant moved to a new pot shows why counts alone are insufficient, and why rollback, forward recovery or safe refusal needs a stated policy.

READ BRIEF