Skip to content

Commit a8b5f97

Browse files
authored
Merge pull request #180 from argos-ci/greg/arg-216-upgrade-argos-playwright-docs
fix(playwright): add `createArgosReporterOptions` in quickstart
2 parents 4737665 + 7a39fb9 commit a8b5f97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/partials.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export const PlaywrightConfig = () => (
170170
<CodeBlock language="js" title="playwright.config.ts">
171171
{`
172172
import { defineConfig } from "@playwright/test";
173+
import { createArgosReporterOptions } from "@argos-ci/playwright/reporter";
173174
174175
export default defineConfig({
175176
// ... other configuration
@@ -181,13 +182,13 @@ export default defineConfig({
181182
// Add Argos reporter.
182183
[
183184
"@argos-ci/playwright/reporter",
184-
{
185+
createArgosReporterOptions({
185186
// Upload to Argos on CI only.
186187
uploadToArgos: !!process.env.CI,
187188
188189
// Set your Argos token (required if not using GitHub Actions).
189190
token: "<YOUR-ARGOS-TOKEN>",
190-
},
191+
}),
191192
],
192193
],
193194

0 commit comments

Comments
 (0)