Organizing Playwright Tests Effectively
Struggling with test maintenance? Debbie O'Brien wrote a wonderful article outlining the practical way of structuring and handling your Playwright tests.
Moreover, Butch Mayhew put together a helpful guide on How to Run a Specific Spec File in Playwright Tests Sequentially.
Advanced Visual Testing with Playwright
If you want to improve your test automation strategy with visual tests, Dipen Chavan shows how to implement them using Playwright and other tools.
Also, Debbie O'Brien shares a tip about Handling Visibility in Playwright: getByText vs. getByRole.
Automating Accessibility Checks Using Playwright
Want to know how to test your web app for accessibility? Thara Perera shows how to achieve that with Playwright and axe-core.
Moreover, Tolga Ulusoy explains why we should Use await expect(locator).toHaveText()
Instead of expect(await locator.textContent())
in Playwright.
Playwright Trace Viewer — Copy as Playwright API Request
With the latest release of Playwright's 1.50 version, you can now copy API requests as Playwright code, which is a very handy feature if you're writing API tests. Butch Mayhew shows how to use it.
Recently, a new Playwright Test runner has been released. Alister Scott shows how it compares to the other popular JavaScript test runner — Jest.
And if you want to see it in practice, Andrii Baidachenko published a handy guide to implementing Page Object Model with Playwright.
If you're curious to see how Playwright and Selenium compare in terms of speed and implementation, watch Victor Vrinceanu explaining all the differences and showing code examples.
Testing GraphQL with Playwright
Playwright has recently announced a new API testing feature. While it's meant to aid UI test automation with some handy backend calls, it can also be used for API testing, as Katarzyna Kmiotek demonstrates.
Playwright Tutorial for Beginners
If you'd like to learn test automation in Playwright from scratch, here's a great 10-part tutorial by Oluwasegun Kayode. You can find all links under the article.
Diogo Nunes put together a list of handy code snippets that can help you test easier with Playwright.
Additionally, Swikriti Tripathi wrote about Behavior Driven Development (BDD) using Playwright.
Being in the spotlight inevitably bring comparisons. Is Cypress better than Playwright? Here's an interesting discussion on Reddit about the two most popular JavaScript testing tools.
Additionally, Hugh McCamphill gives Four reasons why WebdriverIO is better than Cypress.