Lesson 28 — Smoke & Regression: The Two Suites Every Site Needs · Practical QA
LESSON VIEW
B-07 · BASIC · PRACTICAL QA

Lesson 28 — Smoke & Regression: The Two Suites Every Site Needs

Objective: The difference between the hallway check and the full inspection — and why your main file is called smoke.spec.ts.

⏱ ≈4 min full lesson · Converted from the B-07 module deck · English edition — Español · العربية · বাংলা in translation

⚡ Key Points

  • The earthquake walk — After an earthquake, someone walks the halls: doors open?
  • Regression: the full inspection — A REGRESSION suite is every check ever accumulated, run to catch regressions — things that used to work and broke after…
  • Why layers, not one pile — Smoke runs in minutes on every deploy. Regression takes as long as it takes, on schedule and before releases.
  • The purest smoke check there is — “Visit the page and confirm nothing exploded” — TC-004 in your suite.
  • Plug & chug: the forever rule — A production bug gets fixed. What happens to the regression suite?

📖 Read

In ~4 minutes: the difference between the hallway check and the full inspection — and why your main file is called smoke.spec.ts.

The earthquake walk: After an earthquake, someone walks the halls: doors open? lights on? water where it shouldn't be? That's a SMOKE test — small, fast, shallow: “is this thing basically alive?” The name comes from electronics: plug it in; if it smokes, stop.

Regression: the full inspection: A REGRESSION suite is every check ever accumulated, run to catch regressions — things that used to work and broke after a change. It grows forever, and that's correct: its size is the project's memory.

Why layers, not one pile: Smoke runs in minutes on every deploy. Regression takes as long as it takes, on schedule and before releases. If smoke fails, regression results would all be noise — so smoke runs first and gates the rest.

The purest smoke check there is: “Visit the page and confirm nothing exploded” — TC-004 in your suite. Breadth over depth is the smoke philosophy: every page loads, links respond, forms are present, no JS errors. Code: page.on("pageerror", e => errors.push(String(e))); | // …visit the page, wait a beat… | expect(errors).toEqual([]);

Plug & chug: the forever rule: A production bug gets fixed. What happens to the regression suite? It gains a permanent test for that bug. Say it as a law: a bug that happened once gets a ______ forever. (A test.) That's how regression suites are born.

Layers clear. Next: journeys — testing the story instead of the page.