Repository navigation
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
130 lines (128 loc) · 3.16 KB
/
Copy pathplaywright.config.ts
File metadata and controls
130 lines (128 loc) · 3.16 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import { defineConfig, devices } from "@playwright/test";
const previewPort = 4173;
export default defineConfig({
testDir: "./tests/e2e",
timeout: 60_000,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: [
["list"],
["html", { open: "never", outputFolder: "playwright-report" }],
],
use: {
baseURL: `http://127.0.0.1:${previewPort}`,
screenshot: "only-on-failure",
trace: "on-first-retry",
video: "retain-on-failure",
},
projects: [
...(process.env.GOOSE_BIN &&
process.env.GOOSE_SOURCE_DIR &&
process.env.GOOSE_EXPECTED_COMMIT &&
process.env.GOOSE_EXPECTED_SHA256
? [
{
name: "capacity-errors",
testMatch: ["**/capacity-errors.spec.ts"],
use: { ...devices["Desktop Chrome"], screenshot: "off" as const },
},
]
: []),
{
name: "monitor-status",
testMatch: ["**/monitor-status.spec.ts"],
use: {
...devices["Desktop Chrome"],
screenshot: "off",
video: "off",
trace: "off",
},
},
{
name: "smoke",
testMatch: ["**/smoke.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "right-rail-layout",
testMatch: ["**/right-rail-layout.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "session-fork",
testMatch: ["**/session-fork.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "personas",
testMatch: ["**/personas.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "skills",
testMatch: ["**/skills.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "drafts",
testMatch: ["**/drafts.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "navigation-keyboard",
testMatch: ["**/navigation-keyboard.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "provider-setup",
testMatch: ["**/provider-setup-failure.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "assistive-ux",
testMatch: ["**/assistive-ux.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "voice-conversation",
testMatch: [
"**/voice-conversation.spec.ts",
"**/voice-markdown-boundary.spec.ts",
"**/voice-endpoints.spec.ts",
"**/voice-settings-visual.spec.ts",
],
use: {
...devices["Desktop Chrome"],
userAgent:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 " +
"(KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
},
},
],
webServer: {
// Opt-in reuse only. Reusing arbitrary local processes makes the suite
// flaky when another test run or dev server happens to be bound here.
command: `python3 -m http.server ${previewPort} -d dist`,
cwd: ".",
reuseExistingServer: process.env.PLAYWRIGHT_REUSE_SERVER === "1",
url: `http://127.0.0.1:${previewPort}`,
},
});