Breaks on the next redesign
page.locator("div > div:nth-child(3) > span")
Mirage Academy · Playwright testing course
Your tests either miss real bugs or fail for no reason. This course teaches you to pick the test level on purpose, write stable browser tests with Playwright, remove flakiness and test AI features and agent workflows. Watch it in a minute, then see how a rare flake turns into a red build.
The course in a minute
Automated Testing, Playwright & AI Quality Engineering builds test suites that catch real problems in web and AI applications, without flakiness.

You ship a web app, maybe with AI features, and your tests either miss real bugs or fail for no reason. This course is for you. Weak suites test at the wrong level, selectors break on every redesign, and AI output goes unchecked. After this course you pick the level on purpose, use stable selectors, and test AI features and agent workflows. Each chapter adds to one loop. You decide what to test and at which level. You write unit, integration and end-to-end tests with Playwright. You remove flakiness and add API, visual and accessibility checks. Then you run it all in CI. In the capstone you build a complete test suite for a SaaS product. If you want tests that catch real problems, enroll and start with chapter one.
Open the course: Automated Testing, Playwright & AI Quality Engineering
One loop, step by step
Listed as Advanced on the course page.
Five lessons in each chapter, with the capstone as chapter 8.
Developers and technical product people who work on AI features.
Chapters 1 and 2
A test at the wrong level is slow, brittle or blind. The first two chapters sort out what to test at the unit, the integration and the end to end level.
Closest to what a user does
Many, small and quick to run
Lessons: what a test is and what it costs, unit, integration and end to end, choosing the level, what makes a test trustworthy, coverage and mutation.
Lessons: boundaries, test doubles, table-driven tests, integration tests with a real database, contract tests.
Chapter 3
End to end tests drive a real browser through a journey a user cares about. The chapter asks which journeys, how a test is built, how tests stay apart and how to read a failure.
Settings
SaveSaved
Open, act, assert Example lines in Playwright's own API, not a file from the course.
await page.goto("/settings");await page.getByTestId("save-button").click();await expect(page.getByText("Saved")).toBeVisible();Lessons: which journeys, anatomy of a browser test.
Lessons: isolation and reuse, test data.
Lesson: reading failures.
Chapter 4 · Try it: flakes compound
Chapter 4 is about stable selectors and flaky tests. It starts with selectors that survive a redesign, then moves to the arithmetic that turns a rare flake into a daily red build.
Selectors Example lines, not a file from the course.
Breaks on the next redesign
page.locator("div > div:nth-child(3) > span")Survives it
page.getByTestId("save-button")Example arithmetic with invented numbers, not a measurement of any suite.
200 tests, 0.5 percent flake chance, 0 retries: a 63.3 percent chance of a red run with no bug, 0 extra re-runs per run, 12.7 red runs out of 20.
Lessons: selector stability, waiting.
Lessons: flakes compound, retries and quarantine.
Lesson: root causes.
Chapter 5
Beyond the click path: the API, the pixels, accessibility and the part automation cannot see.
Status codes and repeated requests
Two screenshots, one difference
Checks a script can run
What automation cannot see
Lessons: status codes in API tests, repeating requests.
Lesson: visual regression.
Lesson: accessibility checks.
Lesson: what automation cannot see.
Chapter 6
An AI feature may word the same answer in many ways. The chapter asks when to check an exact answer and when to check a property of it.
Question Invented example, not a transcript.
How long do I have to return an item?
Two answers 1: You can return it within 30 days.
Exact check:Pass
Property checks:Pass
Two answers 2: Returns are accepted for 30 days after delivery.
Exact check:Fail
Property checks:Pass
Exact check
equals "You can return it within 30 days."Property checks
A scripted modelIn a test, a model that replays fixed replies keeps the run repeatable.
Lesson: exact or property.
Lesson: golden sets and noise.
Lesson: scripted models.
Lessons: trajectories, a change gate.
The evaluation side: the AI evaluation course →Agents worth testing: build AI agents →
Chapter 7
Chapter 7 is called Tests in CI and covers fail fast, sharding, caching, required checks and merge queues, and reading reports.
Required checkFail fast
Chapter 7, lesson 1.
Chapter 7, lesson 2.
Chapter 7, lesson 3.
Chapter 7, lesson 4.
Chapter 7, lesson 5.
Chapter 8
One suite for one product, planned by risk and judged by how often it fails for no reason.
Open the course: Automated Testing, Playwright & AI Quality Engineering
It teaches you to build test suites that catch real problems in web and AI applications without flakiness: choosing the level, writing unit, integration and browser tests, stable selectors, API, visual and accessibility checks, testing AI features and running it all in CI.
The capstone is a test suite for a SaaS product. You plan it by risk, fit it into a time budget, measure its false red rate, gate a change to an AI feature and review the whole suite.
It has 8 chapters and 40 lessons, five lessons in each chapter. They run from what to test and at which level through browser tests, flaky tests, API, visual and accessibility checks and AI features to CI and the capstone.
Yes. A whole chapter covers stable selectors, waiting, how flakes compound, retries and quarantine, and root causes.
This course is about automated tests for web apps and the AI features inside them. The AI evaluation course goes deeper into evaluating AI behavior: datasets, graders, model judges, a regression gate and production monitoring.
No. It is a small calculation written for this page, with invented numbers. It assumes that attempts are independent, which real flakes often are not.
We offer certificates, yes, each with a verification code. What a certificate states is Mirage's own word, not a state recognized degree.
See the eight chapters and the intro video on the course page, then begin with what to test.