Playwright has become a leading choice for end-to-end testing because it drives Chromium, Firefox and WebKit from one API and waits for the page automatically, which removes a large class of flaky tests. The same tool also automates repetitive browser tasks, and AI agents increasingly use it to operate web pages. This course teaches you to write tests that stay green for the right reasons and to debug them quickly when they fail.
What you'll learn
- Setting up Playwright Test with TypeScript and the VS Code extension
- Role-based locators, web-first assertions and auto-waiting
- Structuring tests with fixtures, hooks and the Page Object pattern, without over-abstracting
- Logging in once and reusing authentication state across tests
- Mocking and intercepting network requests, and testing APIs directly
- Visual comparisons, screenshots and basic accessibility checks
- Debugging with UI mode, the trace viewer and codegen
- Finding and fixing the real causes of flaky tests
- Running tests in parallel, sharding and reporting in GitHub Actions or GitLab CI
- Browser automation beyond testing, and how AI agents use Playwright through MCP
Who it's for
- Developers who want confidence that key user journeys still work after each change
- QA engineers moving from manual testing or older tools such as Selenium or Cypress
- Teams with an end-to-end suite that is slow or unreliable
Prerequisites
- Basic JavaScript or TypeScript (see Modern JavaScript Essentials)
- Familiarity with HTML and how web pages load
- Node.js installed; testing fundamentals help (see Software Testing and QA Fundamentals)
Outcomes
By the end of this course you will be able to:
- Write end-to-end tests for core journeys such as sign-up, checkout and search.
- Choose locators and assertions that keep tests stable as the UI changes.
- Diagnose a failing test from its trace instead of rerunning until it passes.
- Run a parallel test suite in CI with useful reports.
Projects you'll build
- Checkout journey suite - End-to-end tests for sign-up, log-in, search and checkout on a demo shop, using role-based locators, saved authentication state and seeded test data.
- Mocked-API edge cases - Tests that intercept network calls to simulate slow responses, server errors and empty results, so you can check states that are hard to reproduce against a live backend.
- CI pipeline with traces - A sharded suite running across three browsers in GitHub Actions, publishing an HTML report and keeping traces only for failed runs.
Tools you'll use
- Playwright Test with TypeScript and Node.js
- Playwright VS Code extension, UI mode, codegen and the trace viewer
- axe-core via @axe-core/playwright for accessibility checks
- GitHub Actions or GitLab CI for running the suite
- Playwright MCP for letting AI agents drive a browser
Course outline
| Module | Topic |
|---|---|
| 1 | Why Playwright and how it works |
| 2 | Setup, configuration and your first test |
| 3 | Locators and web-first assertions |
| 4 | Fixtures, hooks and test organisation |
| 5 | Authentication and test data |
| 6 | Network mocking and API testing |
| 7 | Visual and accessibility checks |
| 8 | Debugging: UI mode, traces and codegen |
| 9 | Flaky tests: causes and cures |
| 10 | Parallelism, sharding and CI |
| 11 | Browser automation and AI agents |
| 12 | Project: an end-to-end suite for a real web app |
FAQ
Can I use Python instead of TypeScript?
Playwright supports Python, Java and .NET as well. The course uses TypeScript with Playwright Test, but the concepts and most APIs carry over.
Should we replace all unit tests with end-to-end tests?
No. End-to-end tests are slower and best kept for critical journeys. We cover how they fit alongside unit and integration tests.
How is this different from the Vitest and Playwright course?
Frontend Testing with Vitest and Playwright covers the whole testing pyramid for a front-end codebase, with most time on unit and component tests. This course goes deep on Playwright alone: end-to-end suites, flaky-test diagnosis, CI scale and browser automation.
Is it legal to automate any website?
Automate your own applications, or sites whose terms allow it. Scraping or automating third-party sites can break their terms of service, so check before you start.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.