Skip to content

Examples presented during TestWarez Conference 2025 - discover new automation strategies includes examples for UI, REST API, GraphQL, WebSockets, a11y, visual testing, and more.

Notifications You must be signed in to change notification settings

jaktestowac/playwright-examples-testwarez-2025

Repository files navigation

Playwright Examples for TestWarez 2025

Welcome to the Playwright Examples repository for the talk:

Clicking the GUI is not enough! How Playwright can help you discover new automation strategies (also with AI)

Tip

💡 Choose your language README.md:

This project helps you learn and practice Playwright beyond just UI testing. It includes examples for UI, REST API, GraphQL, WebSockets, a11y, visual testing, and more.

Whether you're a beginner or an experienced tester, you'll find practical examples and resources to level up your testing skills.

Tip

Want to learn more about Playwright? Check out our courses:

📖 Table of Contents

Setup

To run the examples, set up the demo application locally and then run the Playwright tests.

🛠️ Prerequisites

  • Node.js (version 14 or higher)
  • NPM or Yarn package manager
  • 🦎GAD – a free demo app running locally on http://localhost:3000

Application Setup

Important

Want to quickly test the application?

  1. Clone the Repository: Start by cloning the demo app to your local machine.

    git clone https://github.com/jaktestowac/gad-gui-api-demo.git
    cd gad-gui-api-demo
  2. Install Dependencies: Install the dependencies using npm or yarn.

    npm install
  3. Start the Application: Run the application locally.

    npm run start
  4. Access the Application: Open http://localhost:3000 in your browser.

Tests Setup

With the application running locally, set up and run the Playwright tests.

  1. Clone this Repository

    git clone https://github.com/jaktestowac/playwright-examples-testwarez-2025.git
    cd playwright-examples-testwarez-2025
  2. Install Dependencies

    npm install

    Make sure you have Playwright browsers installed:

    npx playwright install
  3. Run the Tests

    npx playwright test

Examples Overview

This repository includes a variety of examples demonstrating different testing strategies with Playwright:

  • UI testing: tests/ui
  • UI accessibility: tests/a11y
  • REST API: tests/api and mocked API: tests/api-mock
  • GraphQL: tests/graphql
  • Multi-session scenarios: tests/multi-session
  • Visual regression testing: tests/visual-testing and canvas mocking: tests/visual-testing-mock
  • WebSockets: tests/websockets
  • Mocking network requests: tests/visual-testing-mock and tests/api-mock

Run all tests with npx playwright test or target a folder/file for specific suites.

Playwright & AI

Materials about AI and Playwright are available in our course: Playwright & AI.

Playwright z AI

Important

Check our free YouTube recording to learn more about GitHub Copilot Chat Modes:

GitHub Copilot - Chat Modes

Happy testing! 🚀

Help & Support

📞 Contact & Support

Feel free to reach out to us:


Learning Resources

We have gathered a collection of resources to help you learn and master Playwright, both in Polish and English.

🇵🇱 Polish Resources

AI_Testers

Gain an edge by combining AI knowledge with the most popular tools in the IT market.
We'll show you how to accelerate with AI and build a professional test automation framework. 😉

🇬🇧 English Resources

PS. For more resources and updates, follow us on our website and GitHub.


Powered by jaktestowac.pl team! 💚❤️

Releases

No releases published

Packages

No packages published