Playwright Codegen: Record a Test, Then Make It Maintainable
How to get the most out of Playwright codegen, and the five refactors that turn a recorded script into a test you can keep.
Category
Hands-on Playwright Test guides: locators, assertions, fixtures, page objects, authentication, network mocking and test data, with code you can run.
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.
The Playwright assertions worth knowing, the ones that pass no matter what, and how to check values that change on every run.
A small, honest page object model for Playwright, wired in with fixtures, and the patterns that make page objects worse than none.
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.
Patterns for creating, isolating and cleaning up test data in Playwright so parallel tests stop colliding.
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.
Toasts appear and vanish on their own schedule. Here is how to assert them reliably in Playwright.