Plain Reckoner
English
← All fix guides

Tests

Find why a browser test fails sometimes

Keep the failure evidence before adding another delay.

Editorial guide · Reviewed 2026-11-11

Step 01

Save the failed attempt

Keep the trace, error, revision, browser and command. Separate launch or server failures from assertions about the app.

Step 02

Name the ready state

Define the visible condition the next action needs. Check that it belongs to the current document or operation.

Step 03

Remove shared assumptions

Inspect reused accounts, data names, storage and cleanup. Compare a failing parallel run with an isolated run.

Step 04

Make one focused change

Use a deliberate selector or readiness condition that addresses the observed cause. Do not weaken the assertion.

Step 05

Check the original conditions

Run with the timing and concurrency that exposed the failure. Retain all attempts and state what remains untested.

A diagnostic process, not a guarantee of zero intermittent failures. Traces may contain sensitive data; sanitize before sharing.
Playwright testing practices ↗