-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
51 lines (50 loc) · 1.44 KB
/
Copy pathplaywright.config.ts
File metadata and controls
51 lines (50 loc) · 1.44 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
48
49
50
51
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1, // Back-end seems to be not able to run the tests in parallel with the same login
fullyParallel: false,
reporter: [
['html', { open: 'never' }],
['list', { printSteps: true }],
['github'],
],
use: {
trace: 'on-first-retry',
headless: !!process.env.CI,
baseURL: 'https://wmxrwq14uc.execute-api.us-east-1.amazonaws.com',
},
projects: [
/* ----- DISABLED: AUTH SETUP & SMOKE TESTS -----
{
name: 'setup',
testMatch: /.*\.setup\.ts/,
},
{
name: 'ui-smoke-chrome',
use: {
...devices['Desktop Chrome'],
storageState: 'playwright/.auth/user.json',
},
dependencies: ['setup'],
grep: /@smoke/,
},
*/
{
name: 'ui-chrome',
use: {
...devices['Desktop Chrome'],
channel: 'chromium',
// storageState: 'playwright/.auth/user.json',
},
testMatch: /ui\/.*\.spec\.ts/,
// dependencies: ['setup'],
// grepInvert: /@smoke/,
},
{
name: 'api',
testMatch: /api\/.*\.spec\.ts/,
},
],
});