-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
63 lines (61 loc) · 1.61 KB
/
playwright.config.ts
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
import type { PlaywrightTestConfig } from "@playwright/test";
import { Status } from "allure-js-commons";
import * as os from "node:os";
const config: PlaywrightTestConfig = {
reporter: [
["line"],
[
"allure-playwright",
{
name: "QA Automation - Playwright - DEMO",
plugins: {
awesome: {
options: {
singleFile: true,
reportLanguage: "en",
},
},
},
resultsDir: "allure-results",
detail: false,
suiteTitle: true,
links: {
issue: {
nameTemplate: "Issue #%s",
urlTemplate: "https://issues.example.com/%s",
},
tms: {
nameTemplate: "TMS #%s",
urlTemplate: "https://tms.example.com/%s",
},
jira: {
urlTemplate: (v) => `https://jira.example.com/browse/${v}`,
},
},
categories: [
{
name: "foo",
messageRegex: "bar",
traceRegex: "baz",
matchedStatuses: [Status.FAILED, Status.BROKEN],
},
],
environmentInfo: {
// Environment information that will be attached to the report
browser: process.env.BROWSER,
browser_version: process.env.BROWSER_VERSION,
os_platform: os.platform(),
os_release: os.release(),
os_version: os.version(),
node_version: process.version,
},
},
],
],
fullyParallel: true,
use: {
screenshot: "only-on-failure",
video: "on-first-retry",
},
};
export default config;