Serenity supports Playwright Test UI Mode
If you like using BDD with Playwright tests, you might be happy to find out that the 3.3.0 version of Serenity/JS brings support for Playwright Test UI mode, as explained by Jan Molak.
Visual Testing in Playwright: Ensure UI Consistency
If you want to learn about visual testing with Playwright, here's a good 23-minute overview by Jared from CommitQuality.
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?.
Are ChatGPT or Claude better than Playwright Codegen?
Interesting question! Stefan Judis checks how general-purpose LLM chatbots compare to Playwright Codegen when it comes to the accuracy and effectiveness of generating tests.
How to Use Playwright for Advanced Network Interception
If you're looking into validating your web app behaviour in failure scenarios, Balaji Kumarasamy shows a handy guide to validating that with Playwright tests.
Also, Rinkesh Patel shares a concise Recipe for managing Playwright tests for different deployment environments.
How to do authentication in Playwright
If your web app requires authentication, there's a smart way of handling that across several Playwright tests without repeating the login scenario all over again. Filip Hric explains how.
Similarly, Butch Mayhew has an example of Playwright Login Test With 2FA Enabled.
API Testing with Playwright and OpenAPI-Generated Types
Playwright can test both the UI and API of web apps. Adam Pajda wrote a detailed, example-based overview of implementing tests for the latter.
Why you should never use page.waitForTimeout() in Playwright
We should always be careful when using waits in tests. Nočnica Mellifera explains why it's important in Playwright as well.
Moreover, Navanishan Reddy L. shows a helpful example of Intercepting Network Requests in Playwright.