Software Testing / Learning brief

Tom opens the parcel instead of reading the label

What this means in plain language

Tom's Daily List tests attach a receipt and export the task list. A post counter story shows how Playwright sends a file, catches a download, and why the test must open the file to check it.

Understand the full idea, step by step

At a post counter you hand over a parcel and get a slip. Later you collect another one. You do not trust the label alone. You open the box and check what is inside.

Tom's tests for Daily List must do the same with files. A task can hold an attached file, and the task list can be exported.

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 uploads and downloads as taught in this academy, on an invented app. The tool details come from search excerpts of its documentation.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. The post counter is a teaching picture. The site address and the files are invented.

Sources for this brief — 5 sources
  1. Market practice

    Locator (Playwright documentation) ↗ — Microsoft (Playwright) · locator.setInputFiles sets the files of a file input from paths or in-memory buffers; relative paths resolve from the working directory; an empty array clears the selection (search excerpt, page not opened)

    Reference for locator.setInputFiles, which sets the files of a file input from paths or in-memory buffers, resolves relative paths from the working directory and clears the selection with an empty array; also frameLocator for content inside an iframe. Vendor documentation for one tool. Practitioner or vendor guidance, not a standard. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: selectOption, setChecked, setInputFiles and tap. 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

    Actions (Playwright documentation) ↗ — Microsoft (Playwright) · setInputFiles takes a path, an array of paths, an empty array or a buffer; the file chooser route suits inputs created on the fly (search excerpt, page not opened)

    Says locator.setInputFiles takes a path, an array of paths, an empty array to clear, or an in-memory buffer, and that the file chooser route is for inputs created on the fly. Vendor documentation for one tool. Practitioner or vendor guidance, 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

    FileChooser (Playwright documentation) ↗ — Microsoft (Playwright) · Listen for the filechooser event before the click that opens the chooser, then call fileChooser.setFiles (search excerpt, page not opened)

    Shows listening for the filechooser event before the click that opens the chooser, then passing files with fileChooser.setFiles. 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

    Downloads (Playwright documentation) ↗ — Microsoft (Playwright) · Wait for the download event before the click; suggestedFilename and saveAs on the download; saveAs waits for the download to finish; downloaded files are deleted when the browser context closes (search excerpt, page not opened)

    Download event ordering and saveAs. The context owns temporary downloaded files and deletes those temporary files on context close; a separately saved copy has its own filesystem lifetime. Verifying a suggested filename does not verify exported contents. Existing October source-search provenance remains limited; operative behavior is cross-checked through the actual Input/Downloads-linked API scope in the v45 audit. · 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.

  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 HEREUploads and downloadsAttach a file to a task with setInputFiles, catch the file chooser, and wait for a download to check its name and content.Opens at L0 Explain simply · about 18 min

Related briefs