playmatic
v0.1.15
Published
AI-powered E2E testing CLI with self-healing capabilities
Maintainers
Readme
Playmatic CLI
AI-powered E2E testing CLI with self-healing capabilities.
Installation
# npm
npm install -g playmatic
# pnpm
pnpm add -g playmatic
# yarn
yarn global add playmaticQuick Start
# Setup your API key
playmatic setup
# Run tests
playmatic run playmatic-tests/What are Playmatic Tests?
Playmatic tests combine natural language instructions with optional cached steps for robust, self-healing E2E testing:
import { test, testStep } from "@playmatic/sdk";
test("Login and Navigate", () => {
// Cached step (Playwright-compatible)
testStep("Go to login page", async ({ page }) => {
await page.goto("/login");
});
// Pure natural language - AI figures out how to do this
testStep("Enter credentials and login");
// AI will heal if cached step fails
testStep("Navigate to dashboard", async ({ page }) => {
await page.click('[data-testid="dashboard-link"]');
});
});When cached steps fail, AI computer vision automatically heals the test by figuring out how to accomplish the intent using visual understanding.
Writing Tests
Tests are written using the @playmatic/sdk package.
Complete guides, examples, and API reference at docs.playmatic.ai
