Playwright / Scenario

The Midnight Token Heist

Every authenticated test dies at 00:30 with a redirect to /login. The setup project exists, the auth file exists, and one missing config line explains everything.

Difficulty
Hard
Format
Scenario
Points
200
Estimate
15 min

// MISSION BRIEF

Your Mission

The nightly pipeline went from green to 94 failures overnight. Every failure is identical: expected /dashboard, got /login. The team HAS an auth setup file. The state file EXISTS in the repo. And that second fact should already bother you.

Untangle why the setup never ran, why it worked until tonight anyway, and what a professional auth pipeline looks like.

Decisions are weighted.

// FIRST CONTACT

Battle teaser

First artifact

playwright.config.ts (excerpt)

Why did the setup project never run in CI?

  1. ASetup projects require a paid runner
  2. Bauth.setup.ts has a syntax error
  3. CtestMatch regexes are ignored inside projects
  4. DCI runs --project=chromium and the chromium project declares no dependencies: ['setup'], so nothing ever triggers the setup project
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

playwrightauthenticationstoragestateci-cdsecurity