Playwright test runner shuffles test order with a reproducible seed
Introduced 2026-10-07 · score 0.98
HOW TO USE IT
When investigating tests that may depend on execution order, run the suite with `--shuffle` to randomize its order. Re-run with the emitted seed to reproduce that order.
npx playwright test --shufflenpx playwright test --shuffle <seed>WHY THIS HELPS
Find tests that depend on execution order while debugging a test suite.
REQUIREMENTS AND LIMITATIONS
- Version: v1.64.0
- --shuffle [seed]: Randomizes test-file order and tests in parallel mode; pass a seed to reproduce a previous order.
FIRST-PARTY EVIDENCE
- https://github.com/microsoft/playwright/releases/tag/v1.64.0
- https://github.com/microsoft/playwright/blob/v1.64.0/packages/playwright/src/program.ts
Check the installed version and the source before using it. Entry JSON