Learn more about Playwright Check Suites in the Playwright Check Suites overview.
Playwright Check Suites are currently in Beta. Join the Slack community to get live updates on feature development and get help getting started.
Prerequisites
Prerequisites
Before creating Playwright Check Suites, ensure you have:
- An initialized Checkly CLI project
- A running Playwright test suite
- A public website you want to monitor
- Understanding of Playwright test syntax and structure
Configuration
The Playwright Check Suite configuration consists of specific Playwright Check Suite options and inherited general monitoring options.Parameter | Type | Required | Default | Description |
---|---|---|---|---|
playwrightConfigPath | string | ✅ | - | Path to the Playwright configuration file (playwright.config.js/ts) |
installCommand | string | ❌ | - | Command to install dependencies before running tests |
testCommand | string | ❌ | npx playwright test | Command to execute Playwright tests |
pwProjects | string string[] | ❌ | - | Specific Playwright projects to run from your configuration |
pwTags | string string[] | ❌ | - | Tags to filter which tests to run using Playwright’s grep functionality |
include | string string[] | ❌ | - | File patterns to include when bundling the test project |
Playwright Check Suite Options
The path to the Playwright configuration file (
playwright.config.js/ts
) which defines test settings, browser configurations, and project structure.Usage: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:
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
.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.
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.
The file patterns to include when bundling the Playwright Check Suite. Use this option to include test files, utilities, and other assets that aren’t automatically discovered.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
Friendly name for your Playwright Check Suite that will be displayed in the Checkly dashboard and used in notifications.Usage:
How often the Playwright Check Suite should run. Use the Examples:Available frequencies:
Frequency
enum to set the check interval.Usage:EVERY_1M
, EVERY_2M
, EVERY_5M
, EVERY_10M
, EVERY_15M
, EVERY_30M
, EVERY_1H
, EVERY_2H
, EVERY_6H
, EVERY_12H
, EVERY_24H
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.
Whether the Playwright Check Suite is enabled and will run according to its schedule.Usage:
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.
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.
Parameter | Type | Required | Description |
---|---|---|---|
key | string | ✅ | Environment variable name |
value | string | ✅ | Environment variable value |
secret | boolean | ❌ | Whether the value should be encrypted and hidden |