-
Notifications
You must be signed in to change notification settings - Fork 4
/
playwright.config.ts
60 lines (57 loc) · 1.5 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
import type { MsTeamsReporterOptions } from "./src";
import { PlaywrightTestConfig, defineConfig, devices } from "@playwright/test";
if (process.env.NODE_ENV === "development") {
require("dotenv").config({ path: ".env" });
}
const config: PlaywrightTestConfig<{}, {}> = {
testDir: "./tests",
timeout: 3 * 60 * 1000,
expect: {
timeout: 30 * 1000,
},
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 2,
workers: process.env.CI ? 1 : 1,
reporter: [
[
"./src/index.ts",
<MsTeamsReporterOptions>{
webhookUrl: process.env.FLOW_WEBHOOK_URL,
title: "E2E Test Results",
linkToResultsUrl: "https://eliostruyf.com",
linkToResultsText: "View results",
linkUrlOnFailure:
"https://github.com/playwright-community/playwright-msteams-reporter/issues",
linkTextOnFailure: "Report an issue",
mentionOnFailure: "elio@struyfconsulting.be",
mentionOnFailureText: "",
enableEmoji: false,
debug: true,
shouldRun: () => true,
},
],
],
use: {
actionTimeout: 0,
trace: "on-first-retry",
},
projects: [
{
name: "setup",
testMatch: "setup.spec.ts",
},
{
name: "chromium",
// dependencies: ["setup"],
use: {
...devices["Desktop Chrome"],
viewport: { width: 1920, height: 1080 },
},
},
],
};
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig(config);