Software Testing / Learning brief
Tom stubs the task list in Cypress
In simple terms / 01
What this means in plain language
Tom tests an empty list and a full list with a stub and a fixture file, and Mei adds a sign-in command.
Complete lesson / 02
Understand the full idea, step by step
Analogy: a film set. A film crew does not need a real storm to film one. They use a rain machine, a prop box and a card of stage directions.
The scene is the same each time.
A stub is the rain machine. Tom, the tester at Daily List, a to-do list app, uses it to control what the server says.
PLAIN WORDS · 1 in this section
- stub
- a simple fake part that gives fixed answers
Evidence & review / 03
Evidence & review
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.
Using Cypress stubs, fixtures and custom commands. The people and app are invented.
What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.
Sources for this brief — 4 sources
- Market practice
cy.intercept() (Cypress docs) ↗ — Cypress · Cypress docs: the intercept command can spy on, stub and change network requests, and a route can return a fixed response from a fixture file (search excerpt, page not opened)
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.
- Market practice
Intercepting network requests (Cypress docs) ↗ — Cypress · Cypress docs: a stub lets you control the body, status, headers and delay of a response, and an intercept should be set before the page visit so it does not miss early requests (search excerpt, page not opened)
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.
- Market practice
Custom commands (Cypress docs) ↗ — Cypress · Cypress docs: a custom command is added once, usually in the support file that runs before every spec, and plain functions are often better when only one spec needs the step (search excerpt, page not opened)
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.