You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/docs/playwright-checks/_index.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,41 @@ For example:
90
90
Creating Checkly check from Playwright test... ✅
91
91
```
92
92
93
+
Review the resulting check configuration in your `checkly.config.ts` file and make sure to tweak locations and schedule as needed.
94
+
95
+
```typescript {title="checkly.config.ts"}
96
+
import { defineConfig } from'checkly'
97
+
98
+
const config =defineConfig({
99
+
logicalId: 'my-repo-name',
100
+
projectName: 'my-repo-name',
101
+
checks: {
102
+
playwrightConfigPath: './playwright.config.ts',
103
+
playwrightChecks: [
104
+
{
105
+
logicalId: 'playwright-check-project-chromium', // tweak ID
106
+
name: 'Playwright Test: --project=chromium', // tweak name
107
+
testCommand: 'npx playwright test --project=chromium',// what we'll run as part of your check suite
108
+
locations: [
109
+
'eu-central-1', // add or change locations
110
+
],
111
+
frequency: 10, // a custom per-check frequency
112
+
},
113
+
],
114
+
frequency: 10, // a global default frequency
115
+
locations: [
116
+
'us-east-1', // a global default location
117
+
],
118
+
},
119
+
cli: {
120
+
runLocation: 'us-east-1', // where test and pw-test will run
121
+
},
122
+
})
123
+
124
+
exportdefaultconfig
125
+
126
+
```
127
+
93
128
### 5. Deploy your Playwright Check Suites
94
129
95
130
Once you are ready to start monitoring your applications with these checks, deploy your Playwright Check Suite into global monitoring with `npx checkly deploy`.
0 commit comments