Playwright Check Suites are currently in Beta. Join the Slack community to get live updates on feature development and get help getting started.
checkly.config.ts/js
file to define your Playwright Check Suite.
Each Playwright Check Suite can be connected to references in your playwright.config.ts/js
file.
During the Beta, a Playwright Check Suite can run up to 20 minutes. This limit can be adjusted based on feedback.
Playwright Check Suite definition
To add Playwright Check Suites to your Checkly monitoring setup, specify the path to yourplaywright.config.ts/js
and add a new playwrightChecks
property to the existing checks
configuration in your checkly.config.ts/js
.
name
- a human friendly name for your check suite.logicalId
- a reference for your check suite.
frequency
, alertChannels
or locations
are inherited from the general Checkly configuration if not specified otherwise.
Playwright references
The Checkly infrastructure will run and deploy all your existing Playwright tests (similar to whatnpx playwright test
runs) as monitors if you don’t reference Playwright projects or tags.
Specify which tests should become part of global end-to-end monitoring by defining these properties:
-
pwProjects
--- select existing project names from your Playwright configuration to create a Playwright Check Suite. -
pwTags
--- select test tags that will be grouped into a Playwright Check Suite.
pwTags
and pwProjects
to generate your check suite, too.
For example:
We recommend usingpwTags
andpwProjects
to group your Playwright tests into different monitoring levels with different monitoring settings. For example, critical application functionality may be monitored best with short monitoring frequencies to lower the mean time to detect (MTTD).
Monitoring customizations
A Playwright Check Suite inherits multiple properties from the abstractCheck
class:
name
activated
muted
locations
tags
frequency
alertChannels
privateLocations
retryStrategy
alertEscalationPolicy
-
installCommand:
Override the command to install dependencies, by default it’ll usenpm install --dev
. -
testCommand:
Override the command to test, by default it uses npx playwright test with the tags, projects, and config file options your check specifies. -
groupName:
The group this check belongs to.