Flaky Playwright Tests: Find the Cause, Fix It, Prove It's Fixed
A field guide to flaky Playwright tests, organised by the error you are staring at, with a loop that proves the fix holds.
Tag
Articles tagged Playwright.
A field guide to flaky Playwright tests, organised by the error you are staring at, with a loop that proves the fix holds.
A ranked guide to Playwright locators, with the way each one breaks and how to narrow a locator that matches too much.
How to get the most out of Playwright codegen, and the five refactors that turn a recorded script into a test you can keep.
Four ways to handle login in Playwright, when each one breaks, and how to keep credentials and state files out of git.
Workers, fullyParallel and shards are three different knobs. When to use each, with complete GitHub Actions and GitLab CI configs.
The Playwright assertions worth knowing, the ones that pass no matter what, and how to check values that change on every run.
From an empty folder to a CI-ready Playwright Python suite with pytest, with every file shown and every command tested.
A small, honest page object model for Playwright, wired in with fixtures, and the patterns that make page objects worse than none.
A dated, checkable comparison of Cypress and Playwright, built around one test written in both, with where each tool genuinely wins.
How to use page.route to create states your real backend won't give you on demand, and where mocking makes an end-to-end test lie.
Set up traces in CI, get them out of a failed job, and read them in five steps to find the real cause of a failure.
Playwright waits for a lot, but not for everything. Here is the exact list, and what to do for the rest.
Test ids make selectors boring in the best way. A naming scheme, an ownership rule and the production question, answered.
Patterns for creating, isolating and cleaning up test data in Playwright so parallel tests stop colliding.
One config for local, staging and production runs, with secrets that never land in the repo or the test file.
A complete .gitlab-ci.yml for Playwright, with the image, caching, test reports and sharding explained line by line.
A command-by-command map from Cypress to Playwright, plus a migration plan that keeps CI green while you switch.
How to move from Selenium to Playwright one flow at a time, with a mapping table for waits, locators and assertions.
Visual comparisons that don't fail on every font change: baselines, masks, thresholds and the CI setup that keeps them stable.
How to reach elements inside iframes in Playwright, including card fields hosted by a payment provider.