Where AI really shines

Spot the testing tasks where AI is the obvious tool, and stay in charge.

You watched the agent crawl pages and write tests, create POMs and restructure your entire project using fixtures.

Pair these tasks with the Playwright CLI and your agent can write and check its own work. And with the recent models (I use Fable), agents are pretty good at test automation.

You made it 🎭

And that's the workshop! The AI block builds on the basics and writing-tests lessons, and you've now seen both. You should be able to:

  • Record, read, and refactor a Playwright test.
  • Use UI mode and the trace viewer to debug anything.
  • Pick locators that survive a redesign and assertions that don't race.
  • Hand a browser to your coding agent through the CLI.
  • Generate tests from a prompt.
  • Move repeated locators into POMs and repeated setup into fixtures while the agent does the typing.

Where to go next:

Thanks for spending the day with me. Go test something. 🎭


Hands on

Spot more places to send the agent

Exercise 1 of 1

Enjoy the rest of the day!

And we'll see each other tomorrow at the conference! 🎉