Playwright / Quiz

Fresh Context, Every Fight

Browser contexts, test.extend, worker scope, and the isolation model that makes parallel Playwright suites possible.

Difficulty
Medium
Format
Quiz
Points
150
Estimate
10 min

// MISSION BRIEF

Your Mission

Playwright's superpower is that every test starts in a pristine world: fresh context, clean cookies, empty localStorage. Its second superpower is fixtures, dependency injection that composes.

This quiz tests whether you know where the isolation boundaries actually sit, and how to build fixtures that respect them.

Speed bonus active.

// FIRST CONTACT

Battle teaser

By default in @playwright/test, each test receives:

  1. AA fresh operating system container
  2. BThe same page as the previous test, for speed
  3. CA shared context per file, reset only between files
  4. DA brand-new BrowserContext (and page), so cookies, storage, and sessions never leak between tests
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

playwrightfixturestest-isolationtypescripte2e-testing