Skip to content

Commit

Permalink
docs(playwright): simplify reporter setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Nov 15, 2023
1 parent 366dc3b commit 3d30b50
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/playwright/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ Install Argos in your Playwright config:
```typescript
import { defineConfig } from "@playwright/test";

// "list" is the default reporter, if you use any other, don't forget to add it back
const defaultReporters: PlaywrightTestConfig["reporter"] = [["list"]];

export default defineConfig({
// ... other configuration

Expand All @@ -60,8 +57,8 @@ export default defineConfig({

// Add Argos reporter only when it runs on CI
reporter: process.env.CI
? [...defaultReporters, ["@argos-ci/playwright/reporter"]]
: defaultReporters,
? [["list"], ["@argos-ci/playwright/reporter"]]
: "list",
});
```

Expand Down Expand Up @@ -149,9 +146,6 @@ For tailored visual testing, the `data-visual-test` attributes provide control o
```typescript
import { defineConfig } from "@playwright/test";

// "list" is the default reporter, if you use any other, don't forget to add it back
const defaultReporters: PlaywrightTestConfig["reporter"] = [["list"]];

export default defineConfig({
// ... other configuration

Expand All @@ -165,8 +159,8 @@ export default defineConfig({

// Add Argos reporter only when it runs on CI
reporter: process.env.CI
? [...defaultReporters, ["@argos-ci/playwright/reporter"]]
: defaultReporters,
? [["list"], ["@argos-ci/playwright/reporter"]]
: "list",
});
```

Expand Down

0 comments on commit 3d30b50

Please sign in to comment.