Use Browser Checks to run end-to-end tests with Playwright. The examples below show how to configure browser checks for different testing scenarios.Documentation Index
Fetch the complete documentation index at: https://checkly-422f444a-harry-red-556-agent-v8-3-1-changelog.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Prerequisites
Before creating Browser Checks, ensure you have:
- An initialized Checkly CLI project
- A public website you want to monitor
- Understanding of Playwright test syntax and structure
Configuration
The Browser Check configuration consists of specific Browser Check options and inherited general check options.- Browser Check
- General Check
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
code | object | ✅ | - | The Playwright test code |
Browser Check Options
The Playwright test code that defines how to execute your end-to-end browser monitor. This is the core component of any browser check.Usage:Parameters:
Examples:Use cases: E2E testing, user journey validation, performance testing, visual regression testing.
| Parameter | Type | Required | Description |
|---|---|---|---|
entrypoint | string | ❌ | Path to a .spec.js or .spec.ts file containing the Playwright test |
content | string | ❌ | Inline JavaScript/TypeScript code as a string |
You must provide either
entrypoint or content, but not both.General Check Options
Friendly name for your Browser Check that will be displayed in the Checkly dashboard and used in notifications.Usage:
How often the Browser Check 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_24HThe Checkly runtime version used to execute the Browser Check. Runtimes are managed execution environments for Browser and Multistep Checks. They include fixed Checkly-provided dependencies, such as Playwright, browser binaries, and runtime libraries.Use
runtimeId for Browser Checks and Multistep Checks. For Playwright Check Suites, use engine instead to select the JavaScript engine version that runs your own Playwright project.Usage:Array of public location codes where the Browser Check should run. Multiple locations provide geographic coverage and redundancy.Usage:Examples:Use cases: Global user experience monitoring, regional performance testing, compliance requirements.
Whether the browser check is enabled and will run according to its schedule.Usage:
Array of tags to organize and categorize your Browser Checks 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 |