How to find flaky Playwright tests that fail every retry
Description: A Playwright test failed 4 of 11 runs. Playwright's report never called it flaky, because it failed both attempts in each bad run.
playwright-smart-reporter keeps the results of past runs. It marked the test flaky from run 5 and put it in the quarantine file. A test that fails every run stayed "failing", and a test that was broken and then fixed stayed "stable".
11 scripted runs on Playwright 1.65.1 and playwright-smart-reporter 4.0.1.
Write-up: https://garyparker.dev/blog/find-flaky-playwright-tests-across-runs
Repo: https://github.com/qa-gary-parker/poc-playwright-flaky-detection
Install: npm i -D playwright-smart-reporter
0:00 Failed 4 of 11 runs, never flaky
0:15 Results across runs
0:25 Failing and fixed tests are not flaky
0:35 Quarantine Close description
playwright-smart-reporter keeps the results of past runs. It marked the test flaky from run 5 and put it in the quarantine file. A test that fails every run stayed "failing", and a test that was broken and then fixed stayed "stable".
11 scripted runs on Playwright 1.65.1 and playwright-smart-reporter 4.0.1.
Write-up: https://garyparker.dev/blog/find-flaky-playwright-tests-across-runs
Repo: https://github.com/qa-gary-parker/poc-playwright-flaky-detection
Install: npm i -D playwright-smart-reporter
0:00 Failed 4 of 11 runs, never flaky
0:15 Results across runs
0:25 Failing and fixed tests are not flaky
0:35 Quarantine Close description




