-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
43 lines (41 loc) · 1.05 KB
/
Copy pathplaywright.config.ts
File metadata and controls
43 lines (41 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { defineConfig } from "@playwright/test"
const chromiumProject = (
name: string,
testMatch: string,
extensionBuildPath: string
) => ({
name,
testMatch,
metadata: { extensionBuildPath }
})
export default defineConfig({
testDir: "./e2e/chromium",
outputDir: "artifacts/e2e/test-results",
fullyParallel: false,
workers: 1,
retries: process.env.CI ? 1 : 0,
forbidOnly: Boolean(process.env.CI),
timeout: 60_000,
expect: {
timeout: 10_000
},
reporter: [
["list"],
["html", { outputFolder: "artifacts/e2e/html", open: "never" }]
],
// The extension fixture launches its own persistent context so profiles can
// survive full browser restarts. It therefore owns trace, screenshot, and
// video capture instead of relying on Playwright's `use` context.
projects: [
chromiumProject(
"chromium-production",
"**/install-and-boot.spec.ts",
"build/chrome-mv3-prod"
),
chromiumProject(
"chromium-persistence",
"**/persistence.spec.ts",
"build/chrome-mv3-benchmark"
)
]
})