Skip to main content
Learn more about Playwright Check Suites in the Playwright Check Suites overview.
Use Playwright Check Suites to reuse your existing Playwright test suite to run it as end-to-end tests and synthetic monitoring. The examples below show how to configure Playwright Check Suites for different testing and monitoring scenarios.
Before creating Playwright Check Suites, ensure you have:For additional setup information, see CLI overview.

Configuration

The Playwright Check Suite configuration consists of specific Playwright Check Suite options and inherited general monitoring options.

Playwright Check Suite Options

string
required
The path to the Playwright configuration file (playwright.config.js/ts) which defines test settings, browser configurations, and project structure.Usage:
string
The command to install dependencies before running tests. This configuration is useful for ensuring test dependencies are available in the runtime environment.Checkly defaults to using npm, but automatically detects other package managers if lock files are present.Usage:
string
default:"npx playwright test"
The command to execute Playwright tests when running npx checkly test or running your Playwright Check Suite as monitor.Usage:
If you configure the testCommand property and pwTags or pwProjects the options will be merged and all configurations applied to npx playwright test.
string
The defined projects to run from your Playwright configuration.Usage:
Playwright Test Projects let you run different test files in different browsers and with different settings. They’re the recommended way to group and bundle test functionality.
string
The tags to filter which tests to run using Playwright’s grep functionality.Tests matching any of these tags will be executed.Usage:
Learn more about test tags and annotations in the Playwright annotation docs.
string
Defines the glob patterns for files and directories that should be included when bundling the Playwright Check Suite. Use this option to manually include additional test files, helper utilities, or other resources that might be outside of the tests directory that your playwright config file points to.Usage:
The Playwright Check Suite bundling process uses a breadth-first search algorithm starting from the entrypoint to recursively find all local file dependencies. It parses import/require statements and follows the dependency graph to include all necessary files.Use include to bundle files that are not directly imported/required.

General Check Options

string
required
Friendly name for your Playwright Check Suite that will be displayed in the Checkly dashboard and used in notifications.Usage:
Frequency
How often the Playwright Check Suite should run. Use the Frequency enum to set the check interval.Usage:
Examples:
Available frequencies: EVERY_1M, EVERY_2M, EVERY_5M, EVERY_10M, EVERY_15M, EVERY_30M, EVERY_1H, EVERY_2H, EVERY_6H, EVERY_12H, EVERY_24H
string[]
default:"[]"
Array of public location codes where the Playwright Check Suite should run. Multiple locations provide geographic coverage and redundancy.Usage:
Examples:
Use cases: Global user experience monitoring, regional performance testing, compliance requirements.
boolean
default:"true"
Whether the Playwright Check Suite is enabled and will run according to its schedule.Usage:
string[]
default:"[]"
Array of Checkly tags to organize and categorize your Playwright Check Suite in the Checkly infrastructure.Usage:
Examples:
Use cases: Organization, filtering, alerting rules, reporting.
object[]
default:"[]"
Check-level environment variables that will be available during test execution. Useful for test configuration and sensitive data.Usage:
Parameters:Examples:
Use cases: Test configuration, authentication, API keys, feature flags, environment-specific settings.

Examples