Objective: What an E2E journey is, why pages can all pass while the story is broken, and where journeys must stop on a live site.
⏱ ≈4 min full lesson · Converted from the B-08 module deck · English edition — Español · العربية · বাংলা in translation
In ~4 minutes: what an E2E journey is, why pages can all pass while the story is broken, and where journeys must stop on a live site.
Customers experience stories: Nobody experiences “a page.” They experience: land → tap the offer → fill the form → see the confirmation. Each page can pass alone while the STORY is broken — the button leads nowhere, the data gets lost between steps.
Anatomy of a journey: Start where the user starts. Do what the user does, in order — no shortcuts, because the path IS the test. Arrive and verify the outcome. Three beats (B-03), stretched across pages.
Journey pieces, already in your suite: TC-009 does a story fragment: click a control, then prove the user is still where the story says. Full journeys are these pieces composed — Page Objects snapping together like train cars. Code: const btn = page.getByText(label).first(); | await btn.click(); | expect(new URL(page.url()).pathname).toBe("/");
Honest cost #1: journeys are wide: When a journey fails, it tells you the STORY broke — not which page. Page checks diagnose; journeys validate. You need both layers, doing different jobs (B-07).
Honest cost #2: safety: A journey may fill a form — but on a live site it must NEVER submit it. The journey ends at the last safe step; submission belongs on staging, where fake orders are free. A journey placing real orders isn't thorough. It's a liability.
Plug & chug: write the story: Your site's most valuable visitor, in 5 numbered steps, as they'd tell it. Then mark with an ✋ the step where the live-site journey must stop. That document is an E2E test case — the code is the easy half.
Stories understood. Next: forms — where the money is, and the one safety rule.