Playwright / Quiz

A Reproducible Browser Container

Audit image versions, installed packages, browser dependencies, and caches in a Playwright CI container.

Difficulty
Medium
Format
Quiz
Points
150
Estimate
8 min

// MISSION BRIEF

Your Mission

A container can eliminate machine drift only when its browser binaries, system libraries, and test package agree. Read a Dockerfile and CI cache notes, then identify which layers are actually reproducible.

// FIRST CONTACT

Battle teaser

The repository uses @playwright/test 1.61.0. CI starts with: FROM mcr.microsoft.com/playwright:v1.61.0-noble WORKDIR /work COPY package.json pnpm-lock.yaml ./ RUN corepack enable && pnpm install --frozen-lockfile What does the Microsoft image provide, and what does the install step provide?

  1. AThe image reads package.json remotely and installs the exact application automatically
  2. BThe image includes the repository's node_modules, so pnpm install is redundant
  3. CThe image contains only Node.js; pnpm downloads all operating system libraries at test time
  4. DThe image provides matching browser binaries and system dependencies; pnpm installs the repository's Playwright package and other npm dependencies
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

playwright-dockercontainersci-cacheplaywright