@@ -72,7 +72,7 @@ export default defineConfig({
72
72
replayPlugin (on, config, {
73
73
apiKey: process .env .REPLAY_API_KEY ,
74
74
upload: {
75
- statusThreshold: " failed"
75
+ statusThreshold: ' failed' ,
76
76
},
77
77
})
78
78
return config
@@ -126,14 +126,13 @@ export default defineConfig({
126
126
replayPlugin (on, config, {
127
127
apiKey: process .env .REPLAY_API_KEY ,
128
128
upload: {
129
- statusThreshold: " failed-and-flaky"
129
+ statusThreshold: ' failed-and-flaky' ,
130
130
},
131
131
})
132
132
return config
133
133
},
134
134
},
135
135
})
136
-
137
136
```
138
137
139
138
{% /tab %}
@@ -169,10 +168,11 @@ export default config;
169
168
## Upload only for the primary branch
170
169
171
170
Many CI providers provide an environment variable that references the current branch name.
172
- * [ CircleCI] ( https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables ) : ` $CIRCLE_BRANCH `
173
- * [ GitLab] ( https://docs.gitlab.com/ee/ci/variables/predefined_variables.html ) : ` $CI_COMMIT_REF_NAME `
174
- * [ Semaphore] ( https://docs.semaphoreci.com/ci-cd-environment/environment-variables/ ) : ` $SEMAPHORE_GIT_BRANCH `
175
- * [ Travis] ( https://docs.travis-ci.com/user/environment-variables/#default-environment-variables ) : ` $TRAVIS_BRANCH `
171
+
172
+ - [ CircleCI] ( https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables ) : ` $CIRCLE_BRANCH `
173
+ - [ GitLab] ( https://docs.gitlab.com/ee/ci/variables/predefined_variables.html ) : ` $CI_COMMIT_REF_NAME `
174
+ - [ Semaphore] ( https://docs.semaphoreci.com/ci-cd-environment/environment-variables/ ) : ` $SEMAPHORE_GIT_BRANCH `
175
+ - [ Travis] ( https://docs.travis-ci.com/user/environment-variables/#default-environment-variables ) : ` $TRAVIS_BRANCH `
176
176
177
177
GitHub [ stores this value in a default variable] ( https://docs.github.com/en/actions/learn-github-actions/variables ) named ` GITHUB_BASE_REF ` that can be passed along as [ part of a Workflow] ( https://docs.github.com/en/actions/learn-github-actions/environment-variables ) and then referenced in the Playwright config, e.g.:
178
178
@@ -186,7 +186,7 @@ export default defineConfig({
186
186
const on = wrapOn (cyOn)
187
187
replayPlugin (on, config, {
188
188
apiKey: process .env .REPLAY_API_KEY ,
189
- upload: process .env .BRANCH_NAME === " main"
189
+ upload: process .env .BRANCH_NAME === ' main' ,
190
190
})
191
191
return config
192
192
},
@@ -244,7 +244,6 @@ export default defineConfig({
244
244
},
245
245
},
246
246
})
247
-
248
247
```
249
248
250
249
{% /tab %}
@@ -293,14 +292,13 @@ export default defineConfig({
293
292
apiKey: process .env .REPLAY_API_KEY ,
294
293
upload: {
295
294
minimizeUploads: true ,
296
- statusThreshold: " failed" ,
295
+ statusThreshold: ' failed' ,
297
296
},
298
297
})
299
298
return config
300
299
},
301
300
},
302
301
})
303
-
304
302
```
305
303
306
304
{% /tab %}
0 commit comments