Timeout overview
| Timeout stage | Default timeout | Configurable |
|---|---|---|
Playwright globalTimeout | Inherits from your config | Yes, up to 30 minutes |
| Dependency installation | 5 minutes | No |
| Playwright test timeout | Inherits from your config | Yes |
| Playwright navigation timeout | Inherits from your config | Yes |
| Playwright action timeout | Inherits from your config | Yes |
| Artifact upload and secret scrubbing | No timeout | No |
Playwright Check Suite execution stages
When Checkly runs your Playwright Check Suite, it goes through these stages:1. Pre-processing
Checkly prepares your execution environment:- Playwright and browsers: Checkly loads the matching Playwright version and browser binaries
- Dependency cache download: Checkly downloads the dependency cache if it exists
- Dependency installation: If the dependency cache does not exist, Checkly runs the install command (default:
npm install,pnpm install, oryarn install)- This stage has a 5-minute timeout
- Use
installCommandin your check suite configuration to run a custom dependency installation command. This can help prevent timeouts during installation. For exampleinstallCommand: 'npm install --ignore-scripts'to skip running postinstall and other lifecycle scripts
2. Test execution
Checkly runs your tests usingnpx playwright test:
- Your Playwright tests and configuration set the timeouts for this stage.
- To limit the whole Playwright suite, use Playwright’s native
globalTimeoutoption. The timer starts whennpx playwright testbegins.- In
playwright.config.ts, setglobalTimeout: 120_000 - In
testCommand, use Playwright’s--global-timeoutflag:testCommand: 'npx playwright test --global-timeout=120000' - If you set
globalTimeoutin both places, thetestCommandflag takes precedence, matching Playwright’s behavior
- In
3. Post-processing
After tests complete, Checkly:- Uploads artifacts: Checkly uploads screenshots, videos, and traces
- Scrubs secrets: Checkly removes secrets declared in your Checkly Environment Secrets from logs and artifacts
- Uploads the dependency cache after successful runs: When a check run passes, Checkly uploads the dependency cache and creates a custom runtime. Future runs can use that runtime when they come from the same repository and use the same
package.json, lock files, and workspace dependencies.
Playwright-specific timeouts
Checkly runs your tests with the timeout configuration from yourplaywright.config.ts and test files. Configure test, navigation, and action timeouts according to your needs. See Playwright’s timeout documentation for detailed configuration options.
Troubleshooting timeout-related errors
Dependency installation timeout exceeded
- Reduce dependencies in your
package.json - Remove large or unnecessary packages
- Check if your registry is slow or has issues
- Update and commit your lock file
Playwright global timeout exceeded
globalTimeout after npx playwright test started. Playwright skipped the remaining tests and Checkly reported the check as failed.
Solution:
- Increase
globalTimeoutin your Playwright config ortestCommand. - Split tests into multiple check suites using
pwTags,pwProjects, or a customtestCommand. - Use Playwright’s per-test
timeoutoption when only individual tests need more time.
Playwright test timeout exceeded
Playwright navigation timeout exceeded
page.goto()) took longer than the navigation timeout.
Solution: Increase the navigation timeout in your Playwright configuration or for specific navigation actions. See Playwright’s timeout documentation for configuration options.