Skip to main content
Turn your Playwright tests into production monitors. Generate a working configuration with AI, or configure manually.

Set up with AI

Copy the setup prompt and paste it into your AI coding tool — Claude Code, Cursor, GitHub Copilot, or similar — from your project directory. The prompt analyzes your Playwright configuration and generates a checkly.config.ts tailored to your project. The prompt guides your AI tool to:
  1. Inspect your Playwright configuration and test files
  2. Recommend which tests to monitor first
  3. Generate a minimal checkly.config.ts with alert channels
  4. Run npx checkly test and npx checkly deploy
This prompt is also available in the Checkly UI when creating a Playwright Check Suite.

Configure manually

  • A Checkly account
  • A repository with Playwright tests and a playwright.config.ts file
  • Playwright version 1.40 or higher
  • Node.js installed locally

Step 1: Install the Checkly CLI

terminal
Built-in TypeScript support requires Checkly CLI v8 or later. On earlier versions, also install a TypeScript loader with npm install --save-dev jiti (preferred) or npm install --save-dev ts-node typescript.

Step 2: Create Your checkly.config.ts

Create a checkly.config.ts file in your project root. This file defines which tests become monitors and how they run. Basic structure:
checkly.config.ts

Step 3: Select Tests to Monitor

Each entry in the playwrightChecks array becomes a separate monitor. Use pwProjects or pwTags to control which tests each check suite runs. This example creates two check suites — one for critical flows running every 5 minutes, and one for secondary features at a lower frequency:
checkly.config.ts
Per-check frequency and locations override the global defaults set in Step 2. For strategies on grouping tests by urgency, environment, or feature area, see Test organization.

Step 4: Test Your Configuration

Before deploying, validate your monitoring setup locally:
terminal
This runs your check suites in Checkly’s infrastructure and shows results in the terminal. You can also review traces, logs, and screenshots in the Checkly UI.
Test specifying the environment type:
terminal
Difference between checkly test and checkly pw-test:
  • checkly test - Runs check suites defined in checkly.config.ts and check.ts files
  • checkly pw-test - Runs any Playwright tests defined in your playwright.config.ts, directly on Checkly’s cloud infrastructure. See the CLI reference.

Step 5: Deploy to Production Monitoring

Deploy your check suites to start continuous monitoring:
terminal
Confirm deployment:
Your monitors run on the configured schedule. View results in your Checkly dashboard.

Best Practices

Next Steps

Test Organization

Advanced strategies for organizing test suites

Configure Alerts

Set up notifications when checks fail

Add to Groups

Organize checks with groups

checkly pw-test

Run Playwright tests on Checkly’s cloud infrastructure