Playwright / Quiz

Tags Through the Test Pipeline

Trace labels from test declarations into command-line and configuration filters without silently selecting the wrong suite.

Difficulty
Easy
Format
Quiz
Points
100
Estimate
6 min

// MISSION BRIEF

Your Mission

Your suite needs fast smoke runs, broader regression runs, and a clean way to select them. Inspect tagged tests and grep filters, then predict exactly which tests run.

// FIRST CONTACT

Battle teaser

Given: test("guest checkout", { tag: "@smoke" }, async ({ page }) => { /* ... */ }); test("coupon matrix", { tag: "@regression" }, async ({ page }) => { /* ... */ }); Which command selects the first test by its tag?

  1. Anpx playwright test --grep @smoke
  2. Bnpx playwright test --project @smoke
  3. Cnpx playwright test --annotation smoke
  4. Dnpx playwright test --tag-only smoke
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

playwright-tagsgrepsuite-selectionplaywright