Prepare Node.js and Playwright
Install Node.js/npm; the GitHub example contains the needed project configuration.
Use the prepared test project or add the TestZombie Playwright library to your existing suite. Standard Playwright APIs remain available.
Install Node.js/npm; the GitHub example contains the needed project configuration.
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 chromiumSet 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"The prepared tests run through different UI mutations. The headed command lets you watch the browser.
npm test
# Browser sichtbar / headed:
npm run test:headedInstall 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 npmCheck the API key, account email and network access to the TestZombie API.
A normal test can succeed without healing. Try the mutation levels described in the repository to see healing in action.
Source updates are optional. Start with preview and review changes before applying them.
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.