Objective: ~5 minutes in cards: the layer ABOVE Page Objects — so a suite survives at 500 tests, not just 19.
⏱ ≈65 min full lesson · English edition — Español · العربية · বাংলা in translation
At scale, the same header, nav, and cookie banner appear on EVERY page, and journeys reuse the same login. Architecture adds two layers before duplication becomes the main cost: COMPONENTS (repeating regions, owned once) and FLOWS (multi-page actions, written once).
Dependencies point DOWN only: tests → flows → page objects → components → Playwright. A Page Object never imports a test file; a component never knows which page embeds it. The day a lower layer imports an upper one, layers become a knot.
Shipped config: trace = retain-on-failure. Dashboard runs: trace = on. Same framework, different deliberate defaults — evidence has a cost, and failures are where it's priceless; the dashboard pays for everywhere because a human is about to watch. Defaults per context = configuration architecture.
From your real config: two timeouts on purpose (60s whole test, 8s per expect). fullyParallel + 1 retry is a CONTRACT — tests must be independent, or parallelism exposes it. And results.json isn't a log; it's a data contract the Excel and tracker tools consume.
Find the most-duplicated 3+ lines across your Page Objects. Name the component or flow they want to become. Then ask: if you extracted it, which tests would change? Correct answer: NONE. If some would change, your layering leaks.
Architecture held. Next: regression engineering — layers, tags, and selective runs.