Software Testing / Learning brief

Mei labels the toolbox drawers

What this means in plain language

Tom digs through a messy Playwright project. Mei labels the drawers like a toolbox: tests here, runner settings there, browser settings in use, and one base address so no test repeats it.

Understand the full idea, step by step

A good toolbox has a label on every drawer. You never dig. You read the label, open the drawer and take the tool.

Tom's Playwright project has no such order in his head. He keeps asking where a setting lives. Mei decides to label the drawers for him.

PLAIN WORDS · 1 in this section
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.

Playwright project layout and config as taught in this academy, with an invented app. Details come from vendor documentation, seen only as search excerpts, and can change between versions.

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

Sources for this brief — 5 sources
  1. Market practice

    Configuration (Playwright documentation) ↗ — Microsoft (Playwright) · The config sets target browsers, timeouts, retries, projects and reporters; testDir is scanned for test files and defaults to the config file folder; baseURL lives under use (search excerpt, page not opened)

    Describes playwright.config.ts, testDir, the use block, the webServer setting and forbidOnly, which makes a run fail when a test or group is marked only and suits CI. Vendor documentation, 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

    Configuration (use) (Playwright documentation) ↗ — Microsoft (Playwright) · Browser and context options go inside the use object; runner options such as testDir stay at the top level; baseURL lets tests use relative paths, and test.use can override it per file (search excerpt, page not opened)

    Says which options belong in use and how baseURL makes relative paths work. Vendor documentation, 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.

  3. Market practice

    Installation (Playwright documentation) ↗ — Microsoft (Playwright) · npm init playwright@latest sets up a project with a config file, a tests folder holding an example spec, and prompts for language, tests folder and browser installation; npx playwright install fetches browsers (search excerpt, page not opened)

    Describes the init command, the prompts, the generated files and how to install and update browsers. Vendor documentation, not a standard. · Checked 2026-11-06

    Actual complete Installation/intro article inspected during Phase 1 on 6 November 2026, including setup prompts, generated files, selected projects, reports and browser update/install contract. Source inspection is not a claim that every scaffold command, supported operating system or version was executed. Documentation licence CC BY 4.0 was separately reviewed; version and local-execution limits are in the v45 audit.

  4. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Test user-visible behaviour, keep tests isolated, prefer role and text locators over fragile selectors, and use 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).

  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 HEREThe project layout and the config fileLearn what each folder and file in a Playwright project is for, and what goes in the config file: where tests live, the base address, and the browsers to run.Opens at L0 Explain simply · about 16 min

Related briefs