Handling Multiple Login States Between Different Tests in Playwright
Login is one of the most popular and fundamental scenarios in UI tests. Butch Mayhew shows various ways of handling that in Playwright.
Playwright Data Attributes: Simplify Test Automation and Enhance Maintainability
Using data attributes in HTML elements for testing purposes greatly improves the experience and stability of tests. Here's a guide by Khurram Muslim explaining it, using Playwright as an example.
However, someone on Reddit shared a concern about this approach: Should we not use data-testid for element identification?.
Why I switched from Cypress to Playwright
Lucy Diaz shares an interesting, detailed experience of using both Cypress and Playwright frameworks for a few years and how that led to switching to the latter.
Also, following up on the rumours, some people on Reddit are discussing: Is Cypress really on its tail end?.
Ruff — The Fastest Python Linter for Playwright with Python
If you write your Playwright tests in Python, you might be interested in leveraging Ruff for code linting. Joan Alejandro Esquivel Montero explains how to do this in a 14-minute video.
Strategic Tagging: Optimizing Your Playwright Test Suite
Playwright v1.42 introduces a new, more convenient way of tagging tests. Meris Stupar gives a fine overview of that with practical examples.
Similarly, Parthiban Rajasekaran describes The Art of Playwright Tags.
How to Avoid Flaky Tests in Playwright
Playwright has quite a few features that help reduce test flakiness, but that might not be enough by itself. Antonello Zanini shows what more you can do.
And here's a handy overview of Playwright's auto-wait is simple and superb by Cerosh Jacob.
Introduction to the first Playwright project
Just starting with Playwright? You may enjoy Kostiantyn Teltov's helpful and thorough guide.
Also, Luciano Renzi shows how to Simplify Tests by Using a Main Page Object Class in Playwright.
Playwright BDD testing — you don't need Cucumber!
Francesco Borzì describes playwright-bdd — a handy tool that converts your BDD scenarios into Playwright tests.
Playwright interview questions that you are going to love
Following the first article with Playwright interview questions, Adrian Maciuc shares another set of challenges.
And if you want to learn more, Parthiban Rajasekaran wrote a decent piece on Unlocking CSV Data Automation: Techniques and Tips with Playwright and TypeScript.
"Playwright In An Hour" — Webinar Recording
For those of you not familiar with Playwright yet, Gil Zilberfeld recorded a helpful, one-hour overview of the key features of the tool, including the good and the not-so-good sides.