-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
44 lines (42 loc) · 1.1 KB
/
Copy pathplaywright.config.ts
File metadata and controls
44 lines (42 loc) · 1.1 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
import process from "node:process";
import { defineConfig } from "@playwright/test";
const port = Number(process.env.PW_PORT || 5173);
export default defineConfig({
testDir: "./e2e",
timeout: 60_000,
retries: process.env.CI ? 1 : 0,
projects: [
{
name: "smoke",
testMatch: [
"basic.spec.ts",
"csp.spec.ts",
"dom-links.spec.ts",
"selection-ime-clipboard.spec.ts",
],
},
{
name: "browser-regressions-chromium",
testMatch: ["selection-ime-clipboard.spec.ts"],
use: { browserName: "chromium" },
},
{
name: "browser-regressions-firefox",
testMatch: ["selection-ime-clipboard.spec.ts"],
use: { browserName: "firefox" },
},
{
name: "browser-regressions-webkit",
testMatch: ["selection-ime-clipboard.spec.ts"],
use: { browserName: "webkit" },
},
],
use: {
baseURL: `http://127.0.0.1:${port}`,
},
webServer: {
command: `pnpm build && pnpm --filter vue-terminal-example-basic dev --port ${port} --strictPort --host 127.0.0.1`,
port,
reuseExistingServer: false,
},
});