I audited my own public Playwright repo, playwright-e2e-demo, the same way I would audit yours. It is a small suite: 8 tests across 3 browsers, so 24 runs, on Playwright 1.61.1. I kept every finding, including the ones that do not flatter me. The full sample report links each one to the file and line it came from.
The short version: the code is well structured. Page objects, fixtures, stable locators, no sleeps. The weak part is everything around it.
How I audited it
Config and code review, the CI history, a typecheck and a lint run. I did not run the tests themselves, because they hit a live third-party site. The 24/24 pass figure comes from the last CI run.
The result was 3 high, 4 medium and 3 low findings.
High
1. The green badge was 75 days old and nothing re-checked it. CI ran on push and pull request only, and the repo had exactly one CI run (2026-07-18, 24/24 passed). Every test targets a third-party site that can change at any time, so the badge said nothing about the day I looked at it. The fix is a schedule: trigger, so drift in the target site shows up as a red run instead of a surprise on the next PR. This one is fixed: a weekly scheduled run now keeps the badge current.
2. Retries turn flaky tests green without telling anyone. CI retries every failure twice. A test that fails twice and passes on the third attempt is reported as a passing build. The config comment says this absorbs network flakiness, which is exactly how a suite drifts into the state where nobody trusts red. Keep the retries for diagnosis, but set failOnFlakyTests: !!process.env.CI (the pinned Playwright 1.61.1 supports it), or at least publish the flaky count on every run. Still open.
3. 75% of CI time is spent installing browsers. In the only CI run, playwright install --with-deps took 65 seconds and the tests took 22. Browsers and OS packages were downloaded from scratch on every run, for all three engines. Run the job in the mcr.microsoft.com/playwright:v1.61.1-noble image, which has the browsers preinstalled, or cache ~/.cache/ms-playwright keyed on the Playwright version.
Medium
4. The checkout test never checks the order it places. It fills the form, clicks through the overview step and asserts only the "Thank you" header. Item list, subtotal, tax and total are never read, so a pricing bug would pass. One assertion on the item name and total fixes that.
5. Sorting and the broken-user path were prepared but never tested. sortBy() and USERS.problem are defined and never used. problem_user is the account the demo app ships specifically to break images and sorting, so the most interesting cases are the ones left out. Write the two tests or delete the dead code.
6. No lint gate, so a missing await would compile and pass. CI runs tsc only. I ran ESLint 9 with eslint-plugin-playwright (recommended) and no-floating-promises: 0 errors, 1 warning, where an assertion was hidden inside a page object. The code is clean today. Nothing keeps it clean.
7. CI runs on an end-of-life Node version. Node 20 reached end of life on 2026-04-30 and no longer gets security fixes. Move to Node 22 or 24.
Low
8. Every cart and checkout test logs in through the UI. Fine at 24 tests. At a few hundred it becomes the biggest cost in the suite, and a login regression fails every test at once instead of one. Log in once in a setup project and reuse storageState.
9. A negative assertion that would pass on a typo. toBeHidden() on a test id also passes when the id does not exist. Today another test proves the locator; if that test changes, this one passes no matter what. Assert something positive alongside it.
10. The README claims more than the suite shows. It calls 8 tests against a demo site "production-style" and says the patterns scale to a much larger suite unchanged. Findings 2, 3 and 8 are exactly the parts that would change at scale.
What was already right
- Stable locators: everything goes through
getByTestId()withtestIdAttribute: 'data-test'. - No
waitForTimeoutanywhere, only web-first, auto-waiting assertions. forbidOnlyon CI and strict TypeScript;tsc --noEmitpasses.- Login negatives are one data-driven loop instead of four copies.
- Trace, screenshot and video only on failure or retry.
The pattern
None of the high findings are about test code. They are about whether a green run means anything: how often the suite runs, what retries hide, and how much of the pipeline is spent waiting. The biggest wins in this audit cost under an hour in total.
If your suite has the same shape, the Playwright Suite Audit is this report for your repo, plus your last 30 days of CI runs and a debrief call.