Software Testing / Learning brief

Mei hands Tom a driving test

What this means in plain language

Tom's Daily List tests fail now and then, and nobody knows why. A careful driver story names the bad habits, such as guessing waits and shared state, and gives Tom a short card for good ones.

Understand the full idea, step by step

A careful driver checks the mirror, keeps a safe gap and does not guess how long a light stays green. A crash is rarely one big mistake. It is a small habit repeated until the day it matters.

Tom's tests have habits too. Some of them are good, and some are the kind that cause a crash in a few weeks.

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 best practices and anti-patterns as taught in this academy, with an invented app and invented people. Tool details come from vendor documentation seen only as search excerpts.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The driver is a teaching picture. The list of habits is a map, not the full documentation page.

Sources for this brief — 5 sources
  1. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Test what the user sees, keep tests isolated, prefer role and text locators, use web-first assertions that retry, use TypeScript and ESLint to catch errors early, and run tsc --noEmit in the pipeline (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).

  2. 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.

  3. Market practice

    Isolation (Playwright documentation) ↗ — Microsoft (Playwright) · Each test gets its own browser context, a clean-slate environment that is fast to create and fully isolated (search excerpt, page not opened)

    Says Playwright gives each test its own browser context, a clean-slate environment like an incognito profile that is fast to create and fully isolated. 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.

  4. Market practice

    eslint-plugin-playwright (npm package page) ↗ — npm registry page for a community package · The package adds Playwright rules to ESLint; the no-wait-for-timeout rule flags page.waitForTimeout and is in the recommended set (search excerpt, page not opened)

    Describes lint rules for Playwright tests. Community-maintained package, not made by the Playwright team. · 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; read at the time of writing. 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.

  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 HEREBest practices and anti-patternsOne place to read the habits that keep Playwright tests steady, and the habits that make them break. Each habit has a reason, a Daily List example and a fix.Opens at L0 Explain simply · about 20 min

Related briefs