STEP BY STEP

Get started with Playwright TypeScript + TestZombie

Use the prepared test project or add the TestZombie Playwright library to your existing suite. Standard Playwright APIs remain available.

01

Prepare Node.js and Playwright

Install Node.js/npm; the GitHub example contains the needed project configuration.

02

Download the example

Clone the repository, install packages and set up Chromium.

git clone https://github.com/testzombie/testzombie-example-playwright.git
cd testzombie-example-playwright
npm install
npx playwright install chromium
03

Connect your account

Set the API key and account email as environment variables (macOS/Linux example). The GitHub README also shows Windows commands.

export TESTZOMBIE_API_KEY="YOUR_API_KEY"
export TESTZOMBIE_EMAIL="you@example.com"
04

Run the demo

The prepared tests run through different UI mutations. The headed command lets you watch the browser.

npm test
# Browser sichtbar / headed:
npm run test:headed

Add to existing Playwright tests

Install the npm package. In a Playwright test file, the first step is switching the test/expect import. The example project shows how to centralize it.

npm install -D @testzombie/playwright

// Instead of: import { test, expect } from '@playwright/test';
import { test, expect } from '@testzombie/playwright';

Source updates are optional: TESTZOMBIE_SOURCE_UPDATE_MODE=preview reports proposed changes without editing files. The apply mode can write successful fixes to source; always review the Git diff.

View Playwright package on npm

If your first run does not work

Connection failed?

Check the API key, account email and network access to the TestZombie API.

No healing shown?

A normal test can succeed without healing. Try the mutation levels described in the repository to see healing in action.

Want to update source code?

Source updates are optional. Start with preview and review changes before applying them.

First run completed. What next?

You can inspect test runs and healing logs in your dashboard. TestZombie may repair a broken locator; real application failures still fail. Successful locator fixes can optionally be reviewed and applied as source updates.

All integrations