-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
44 lines (40 loc) · 920 Bytes
/
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
import { PlaywrightTestConfig, devices } from '@playwright/test';
import { TestOptions } from './test-options';
// Technicolor
const tcPwd = process.env.TC_PWD;
const tcUrl = process.env.TC_URL ?? 'not-set';
const tcUsr = process.env.TC_USR ?? 'not-set';
// TP-Link Deco
const tpUrl = process.env.TP_URL ?? 'not-set';
const tpPwd = process.env.TP_PWD;
// General
const forbidOnly = !!process.env.CI;
const retries = process.env.CI ? 2 : 0;
const timeout = 60000;
const config: PlaywrightTestConfig<TestOptions> = {
timeout: 200000,
globalTimeout: 600000,
forbidOnly,
retries,
use: {
deco: {
pwd: tpPwd,
timeout,
url: tpUrl,
},
technicolor: {
pwd: tcPwd,
timeout,
url: tcUrl,
usr: tcUsr,
},
trace: 'on-first-retry',
},
projects: [
{
name: 'chrome',
use: { ...devices['Desktop Chrome'] },
},
],
};
export default config;