Software Testing / Learning brief

Tom fits a smoke alarm to the page

What this means in plain language

All of Tom's checks pass, yet the Daily List page quietly breaks behind the scenes. A smoke alarm that names the room shows why a test should listen to the console and fail on a page error.

Understand the full idea, step by step

A smoke alarm does not put out a fire. It makes a loud noise so that you know. A good one says the room. Without one, a fire can burn behind a closed door while you sit calmly in the lounge.

Tom's tests for Daily List, a to-do list app, were like that house. Every click passed. Playwright, a free tool that drives a real web browser, can listen for what the page shouts.

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.

Console messages, page errors and events in Playwright as taught in this academy, with an invented app and invented people. Playwright changes often, so check the current reference.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts, and no real run was made. The smoke alarm is a teaching picture.

Sources for this brief — 5 sources
  1. Market practice

    Page (Playwright documentation) ↗ — Microsoft (Playwright) · The Page class emits events that can be handled with on, once and removeListener; console gives a ConsoleMessage, pageerror reports an uncaught exception, and page.pageErrors() returns recent page errors (search excerpt, page not opened)

    Covers page.routeFromHAR() with its update and notFound options, the popup event, page.waitForLoadState(), page.close() with runBeforeUnload, and page.bringToFront(). Vendor documentation for one tool. Practitioner or vendor 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

    ConsoleMessage class reference (Playwright documentation) ↗ — Microsoft (Playwright) · ConsoleMessage objects arrive through the page console event, and each has a type and a text (search excerpt, page not opened)

    Says ConsoleMessage objects arrive through the page console event, and gives the type and text of each message. 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.

  3. Market practice

    BrowserContext (Playwright documentation) ↗ — Microsoft (Playwright) · The weberror event on a context reports exceptions that are not handled in any page, and points to pageerror for one page (search excerpt, page not opened)

    Describes context.grantPermissions(), context.clearPermissions(), context.setGeolocation() and the advice to grant the geolocation permission as well as setting a position. Vendor documentation for one tool. Practitioner or vendor 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.

  4. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Tests should check what users see and should be isolated from each other (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 HEREListening to the page: console messages, page errors and eventsListen to what the page says in its console and what breaks inside it, and make the test fail when the page shouts, even if every click works.Opens at L0 Explain simply · about 18 min

Related briefs

Tom and the smoke alarm

A reminder fires an hour late. A smoke alarm and a firefighter show how Tom finds the problem, how Leo finds the cause, and why the fix still needs a second look by the tester, as in a real team.

READ BRIEF

Tom counts the smoke alarm mistakes

A smoke alarm can shriek over toast or miss a real fire. Tom uses that picture to count the urgent helper's two kinds of mistake, choose between precision and recall, and spot a helper that drifted.

READ BRIEF