forked from devslopes/html-jon-doe-resume-unsolved
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
41 lines (37 loc) · 1017 Bytes
/
playwright.config.js
File metadata and controls
41 lines (37 loc) · 1017 Bytes
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
// @ts-check
const { defineConfig, devices } = require("@playwright/test");
const {
"liveServer.settings.port": liveServerPort,
} = require("./.vscode/settings.json");
const mainPageUrl = `http://localhost:${liveServerPort}/`;
module.exports = defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : 4,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: mainPageUrl,
trace: "on-first-retry",
},
projects: [
{
name: "html-structure",
testMatch: /html-validate\.spec\.js/,
use: { ...devices["Desktop Chrome"] },
},
{
name: "part1-tests",
testMatch: /tests-p1\.spec\.js/,
dependencies: ["html-structure"],
use: { ...devices["Desktop Chrome"] },
},
{
name: "part2-tests",
testMatch: /tests-p2\.spec\.js/,
dependencies: ["html-structure"],
use: { ...devices["Desktop Chrome"] },
},
],
});