Software Testing / Learning brief

Tom traces a test and then redraws it

What this means in plain language

Tom records a Playwright test with codegen the way you trace a drawing. A tracing story shows why a recording is only a first draft and how to add checks, clear names and clean data by hand.

Understand the full idea, step by step

Put thin paper on a picture and trace the lines. In a minute you have a clean outline. It is not yet your drawing, because it has no shading and a few wobbly lines.

Tom needs a test fast, and he does not yet know the Playwright calls. He will trace first and then redraw.

PLAIN WORDS · 3 in this section
wobbly
shaky and not steady
playwright
a free Microsoft tool that drives a browser for tests
redraw
draw again

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.

Codegen as taught in this academy, with an invented app. Tool 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 tracing 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

    Test generator (Playwright documentation) ↗ — Microsoft · Codegen opens a browser and the Playwright Inspector, records clicks and fills as code, lets you add assertions, and offers a Pick locator button once recording stops; it recommends role, text and test id locators (search excerpt, page not opened)

    Says the generator records actions in a browser and writes test code, suggests locators by role, text and test id, and lets a person add checks for visibility, text and value. Vendor documentation for one tool. Practitioner guidance, not a standard. · 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.

  2. Market practice

    Writing tests (Playwright documentation) ↗ — Microsoft (Playwright) · A first test opens a page, checks the title, clicks a link found by role and name, and checks the next heading; expect matchers wait until the condition is met (search excerpt, page not opened)

    Shows a first test with page.goto, getByRole and expect, and says expect waits for its condition. Vendor documentation, not a standard. · 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 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).

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

  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 HERERecord a test with codegen, then make it yoursUse Playwright's recorder to write a first draft of a test from your clicks, then fix its weak spots: add real checks, clear names and no hard-coded data.Opens at L0 Explain simply · about 16 min

Related briefs