Tester Testarudo

Home / Games

Playwright · BDD · POM · Screenplay

Playwright City

Drive around a city and learn BDD, Page Object Model and Screenplay.

Click the game and use your keyboard, or play with touch.

Learn BDD, Page Object Model and Screenplay by playing

Playwright City is a free browser game, top-down and GTA-style, to understand the three patterns most used to organise test automation with Playwright. You walk or drive around a city and each district teaches one pattern through missions: Cucumber Café for BDD and Gherkin, Page Plaza for the Page Object Model and Actor Theater for Screenplay.

What you practise in each district

BDD: the three amigos conversation, Given / When / Then scenarios, declarative steps, Scenario Outline with Examples and the split between .feature files and step definitions. Page Object Model: encapsulating locators and actions, what belongs in the Page Object versus the test, Playwright fixtures and role-based locators. Screenplay: actors, abilities, tasks, interactions and questions, and when it pays off versus POM. A final boss asks you to combine everything.

Who it is for

Testers and developers who have already written some Playwright tests and want to move to a maintainable architecture. Every challenge comes with an explanation and each completed district gives you a recap. It is a teaching aid, not official guidance for Playwright, Cucumber or Serenity/JS: tools evolve, so check their documentation when applying it. The game content is in Spanish.

Frequently asked questions

Is it free to learn BDD, POM and Screenplay with this game?

Yes. It is free with no sign-up. If you accept marketing cookies you will see short ad breaks, which keep it free.

Do I need to know Playwright?

It helps to have written a Playwright test, but every challenge is explained. It is a good way to organise what you already know.

What is the difference between Page Object Model and Screenplay?

The Page Object Model groups locators and actions per page. Screenplay models actors with abilities who perform small, composable tasks and ask the system questions. Screenplay scales better in large apps; in small projects POM is usually enough.

Does BDD replace the Page Object Model?

No, they sit in different layers. BDD defines the what in business language (Gherkin); underneath, step definitions can use Page Objects or Screenplay tasks for the how.

Does it work on mobile?

Yes, with on-screen touch controls. On keyboard use arrows or WASD to move and E or Space to talk or get in the car.

What language is the game in?

The missions are in Spanish.