Rayrun

Playwright Test

The @playwright/test library is a part of the Playwright ecosystem specifically designed for end-to-end testing. It's a zero-configuration tool providing an efficient, straightforward way to write and run browser-based tests in Node.js. It allows you to take advantage of the Playwright API's automation capabilities in a testing context, including capabilities such as simulating user interactions, working with network requests, and emulating different devices or geolocations. In addition, @playwright/test supports parallel test execution, various assertion styles, and snapshots for more efficient and effective testing. Its tight integration with Playwright's browser automation features makes it a powerful tool for verifying the correctness of web applications across multiple browsers.

Posts

  1. Stress testing Playwright tests using GitHub Actions

    Discover how to boost your CI/CD pipeline's reliability by implementing robust Playwright tests within GitHub Actions. Learn to create custom workflows for repeated test executions, ensuring software quality and reducing pipeline delays.

    Luc Gagan
  2. Detecting Flaky Tests in Playwright with Havoc

    Introducing Havoc, a tool designed to detect flaky tests in Playwright test suites by altering HTTP response times.

    Luc Gagan
  3. Introducing Auto Playwright: Automating Playwright Tests with AI

    Auto Playwright revolutionizes test automation by integrating AI with Playwright, offering a seamless, intuitive way to automate web testing tasks. This open-source tool simplifies test creation with plain-text AI-driven prompts, supporting all browsers compatible with Playwright.

    Luc Gagan
  4. Migrating from Selenium to Playwright: A Guide for Teams

    Supercharge your Next.js app testing with Playwright – a tool for automating Chromium, Firefox, and WebKit browsers. In this guide, I will walk you through setting up and running your first Playwright E2E test for a Next.js application.

    Luc Gagan
  5. Testing Next.js Apps Using Playwright

    Supercharge your Next.js app testing with Playwright – a tool for automating Chromium, Firefox, and WebKit browsers. In this guide, I will walk you through setting up and running your first Playwright E2E test for a Next.js application.

    Luc Gagan
  6. Mastering Playwright: Best Practices for Web Automation with the Page Object Model

    Learn the best practices for creating maintainable, reliable, and scalable test scripts using POM.

    Luc Gagan
  7. Mastering the Art of Detecting and Handling Flaky Tests in Playwright

    We will explore how to identify and deal with flaky tests in Playwright. Learn about the causes of flaky tests, their impacts, and the strategies to handle them effectively.

    Luc Gagan
  8. Playwright logos and brand assets

    Official Playwright logos, color palettes, open graph templates, and other key media resources. Use these tools to create compelling, brand-consistent representations of Playwright in your own blog posts and other creative projects.

    Luc Gagan
  9. A Comparative Analysis of Playwright Adoption vs Cypress and Selenium

    Discover why @playwright/test is rapidly gaining popularity in the world of QA engineering, surpassing tools like Cypress and Selenium. Dive into the reasons behind this fast adoption, understand its advantages, and learn from real-world user case studies.

    Luc Gagan
  10. Comparing Automated Testing Tools: Cypress, Selenium, Playwright, and Puppeteer

    We will explore the strengths and performance benchmarks of popular automated testing tools - Cypress, Selenium, Playwright, and Puppeteer. Explore their features, use cases, and find the best tool for your testing needs.

    Luc Gagan
  11. Accessibility Testing with Playwright

    We will delve into the intricacies of utilizing playwright for a11y testing, offering a comprehensive guide on how to harness its capabilities effectively.

    Luc Gagan
  12. Cross-Browser Analysis of Playwright Testing Efficiency

    We will dissect the intricacies of using Playwright across various web browsers, providing insights into performance variations, strengths, and potential weaknesses.

    Luc Gagan
  13. Blocking Google Analytics in Playwright Tests

    We will explore different strategies for preventing sending data to Google Analytics when running integration tests.

    Luc Gagan
  14. Migrating from Cypress to Playwright

    We will explore the reasons for migrating from Cypress to Playwright, the benefits of using Playwright, and the practical steps to successfully transition your end-to-end testing framework.

    Luc Gagan
  15. Tips for Writing Efficient Playwright Test Scripts

    Maximize the efficiency of your Playwright test scripts with these practical tips and best practices. This comprehensive guide will help you navigate through the complexities of writing test scripts, making your tests more maintainable, reliable, and efficient. Let's dive into these valuable insights and elevate your Playwright testing game.

    Luc Gagan
  16. Mastering Playwright Test Automation: Your Comprehensive Cheat Sheet

    This cheat sheet is designed to provide you with everything you need to kickstart your Playwright journey – from setting up your first test to tackling advanced scenarios.

    Luc Gagan
  17. Understanding the Difference Between Locators and Selectors in @playwright/test

    Selectors and locators might seem similar at first glance, but they play distinct roles in helping you interact with web elements in your automated tests. Let's take a deeper look at what they are, how they differ, and when you might want to use one over the other.

    Luc Gagan
  18. Playwright Mobile App Testing for Android: A Comprehensive Guide

    This comprehensive guide will walk you through mobile web app testing using @playwright/test with a focus on automating Android devices. This article will help determine if @playwright/test is the best tool for your mobile web app testing needs and how to get started.

    Luc Gagan
  19. Maximizing Test Efficiency with Parallelism in Playwright

    Let's dive into managing worker processes, parallelizing tests in a single file, and controlling the test order for the best possible efficiency.

    Luc Gagan
  20. Testing Website Performance Using Playwright

    This guide looks at the various ways web developers and testers can use @playwright/test framework to measure website performance. It covers topics such as setting up Playwright, writing Playwright tests, and interpreting and analyzing the results.

    Luc Gagan
  21. API testing using Playwright

    Playwright offers a powerful solution for API testing that easily integrates with your existing end-to-end testing workflows. In this article, we'll explore the various features of Playwright for API testing, with a focus on using JavaScript for code examples.

    Luc Gagan
  22. How to Block Ads During the Execution of Playwright Tests

    As a software QA engineer, you might encounter situations where ads interfere with your test automation scripts, causing unexpected failures. To ensure a smooth and efficient testing experience, we will examine several techniques to block ads using the Playwright framework.

    Luc Gagan
  23. How to Mock HTTP Traffic in Playwright Tests

    In this article, we will explore how to intercept and mock HTTP traffic in Playwright tests. By doing so, we can create more reliable and efficient tests, while also simulating various scenarios that may be difficult to reproduce otherwise. We will discuss the benefits of using this approach, various ways to intercept and mock HTTP requests, and real-world examples to demonstrate the process. So, let's get started!

    Luc Gagan
  24. Organizing Playwright Tests using Tags

    As a software QA engineer, you know how important it is to maintain a well-structured and organized test suite. This is especially true when working with tools like Playwright, which offer a powerful and flexible way to automate browser testing. In this article, we will explore how to effectively organize your Playwright tests using tags, helping you to keep your test suite clean, efficient, and easy to maintain.

    Luc Gagan
  25. Exploring the Various Retry APIs of Playwright for Robust Testing

    The built-in retry mechanisms for locators and matchers in Playwright are well-known, but are you acquainted with the retry and polling APIs? Let's delve into Playwright's different retry APIs and their use cases.

    Luc Gagan

Videos

How to RECORD and PLAY reliable tests with Playwright
How to RECORD and PLAY reliable tests with Playwright
Playwright Tutorial - Locators and Selectors (NodeJS)
Playwright Tutorial - Locators and Selectors (NodeJS)
Playwright Test Annotations (NodeJS)
Playwright Test Annotations (NodeJS)
Understanding Playwright Test Assertions
Understanding Playwright Test Assertions
Migrate from Jest to Playwright Test Runner | Playwright Tutorial - part 77
Migrate from Jest to Playwright Test Runner | Playwright Tutorial - part 77
Playwright Test Runner Skip on Failure | Playwright Tutorial - Part 46
Playwright Test Runner Skip on Failure | Playwright Tutorial - Part 46
Playwright Visual Comparisons | Playwright part - 28
Playwright Visual Comparisons | Playwright part - 28
Test Group & Hooks | Playwright Tutorial - Part 25
Test Group & Hooks | Playwright Tutorial - Part 25

Questions

Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.