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?
- Anpx playwright test --grep @smoke
- Bnpx playwright test --project @smoke
- Cnpx playwright test --annotation smoke
- Dnpx playwright test --tag-only smoke
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
playwright-tagsgrepsuite-selectionplaywright