Software Testing / Learning brief

Tom tidies the workshop

What this means in plain language

Daily List tests grow messy: a stray pause, a missing await, arguments over spacing. A tidy workshop story shows how a linter, formatter, type check and commit hook catch small slips before review.

Understand the full idea, step by step

In a tidy workshop every tool has its hook on the wall. You see at once which one is missing. In a messy one you lose ten minutes looking for the hammer.

Daily List's test folder has become a messy workshop. Tom and Leo both add tests, and no two files look the same.

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.

Linting, formatting and hooks for Playwright tests as taught in this academy, with an invented app and invented people. Tool details come from vendor and community pages seen only as search excerpts.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The workshop is a teaching picture. Tool commands and settings change between versions.

Sources for this brief — 5 sources
  1. 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.

  2. Market practice

    Husky and lint-staged guide (Better Stack Community) ↗ — Better Stack · A pre-commit hook runs lint-staged on staged files only; if a task fails the commit is blocked (search excerpt, page not opened)

    Practitioner tutorial on git hooks. Commands change between versions, so read the current tool documentation. · 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.

  3. 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).

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

  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 HEREKeeping test code clean: linting, formatting, hooks and reviewUse a linter, a formatter, a type check, a git hook and a short review list so Playwright test code stays tidy and mistakes such as a missing await are caught before they run.Opens at L0 Explain simply · about 20 min

Related briefs

Tom builds the workshop

Tom sets up test automation for Daily List and learns the special tools. A workshop shows him why the plan comes first.

READ BRIEF

Tom visits the car workshop

Tom practises questions on preparing for automation. A car workshop helps him sort the aspects of testability, place tests in five environments and read a tool comparison table.

READ BRIEF