Build Self-Healing Playwright Tests with TypeScript.
Keep your Playwright suite and add TestZombie through one npm package. This guide connects setup, runtime healing, healing history and optional automatic code updates.
npm install @testzombie/playwright
import { test, expect }
from '@testzombie/playwright';
process.env.TESTZOMBIE_API_KEY = '...';
process.env.TESTZOMBIE_EMAIL = '...';Four steps from Playwright to self-healing.
The integration stays intentionally close to your existing test setup.
Install the package
Install the TestZombie Playwright library in your existing project.
npm install @testzombie/playwrightReplace the import
Use test and expect from @testzombie/playwright instead of @playwright/test.
import { test, expect } from '@testzombie/playwright';Set credentials
API key and account email are provided through your Playwright configuration or environment.
TESTZOMBIE_API_KEY
TESTZOMBIE_EMAILRun tests as usual
Existing tests keep running; for suitable locator failures TestZombie adds the healing workflow.
Self-healing is the beginning. The fix can stay.
After a successful healing, the replacement locator can be moved into test code so a runtime fallback becomes a maintainable TypeScript fix.
TypeScript setup FAQ
Do I have to rewrite my existing Playwright tests?
No. The integration approach replaces the import and extends the existing suite instead of introducing a new test stack.
Which browsers can I keep using?
The Playwright page is designed for Chromium, Firefox and WebKit.
Where is the compact configuration reference?
The /developer/playwright integration page bundles installation and configuration; this page focuses on the broader workflow.