Skip to main content

Write tests your business can read

Stop writing brittle UI tests. Leverage the Screenplay Pattern to keep your test suite maintainable, extensible, and scalable.

Setup in seconds

One command. Ready to test.

Get a fully configured Screenplay setup in seconds. Interactive, guided, and ready to scale.

Getting started
login.spec.ts
test('Login to app', async ({ Bob }) => {
// Execute the task Login.toApp() and another one
await Bob.attemptsTo(
Login.toApp(),
TheSecondTask.doSomething(),
);

// Ask for a specific element is visible to validate the task execution was successfull
await Bob.asks(
Element.toBe.visible(HomeScreen.TASK_INDICATOR)
);
});
Screenplay Pattern

Tests that read like a story.

Write tests so expressive that any developer on your team instantly understands what is being tested — and why.

Read the docs
Testla Report
Analyze your results

Beautiful reports out of the box.

Get detailed HTML reports with a single config line. See exactly what passed, failed, and why.

Browse modules