-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
47 lines (45 loc) · 1.21 KB
/
Copy pathplaywright.config.ts
File metadata and controls
47 lines (45 loc) · 1.21 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
import { devices, type PlaywrightTestConfig } from "@playwright/test";
/**
* @see https://playwright.dev/docs/test-configuration
*/
const config: PlaywrightTestConfig = {
testDir: "./tests",
timeout: 60 * 1000,
expect: {
timeout: 5000,
},
forbidOnly: true,
retries: 0,
// Test helpers use one shared Foundry world/GM session.
// Running spec files in parallel causes join/setup contention and early failures.
workers: 1,
reporter: "html",
use: {
actionTimeout: 0,
trace: "on",
headless: false,
ignoreHTTPSErrors: true,
viewport: { width: 1920, height: 1080 },
screenshot: "only-on-failure",
},
snapshotPathTemplate: "{testDir}/snapshots/{testFilePath}/{arg}{ext}",
projects: [
{
name: "smoke",
use: {
...devices["Desktop Chrome"],
},
testMatch: "smoke.spec.js",
},
{
name: "settings",
use: {
...devices["Desktop Chrome"],
},
testMatch: "testSettings.spec.js",
dependencies: ["smoke"],
},
],
outputDir: "test-results/",
};
export default config;