-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathplaywright-tutorials.config.ts
More file actions
41 lines (40 loc) · 943 Bytes
/
playwright-tutorials.config.ts
File metadata and controls
41 lines (40 loc) · 943 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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e/tutorials',
testMatch: /\.tutorial\.ts$/,
fullyParallel: false,
workers: 1,
retries: 0,
timeout: 120_000,
reporter: [['list']],
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || 'https://artifactkeeper.possum-fujita.ts.net',
ignoreHTTPSErrors: true,
viewport: { width: 1920, height: 1080 },
video: {
mode: 'on',
size: { width: 1920, height: 1080 },
},
screenshot: 'off',
trace: 'off',
colorScheme: 'dark',
launchOptions: {
slowMo: 100,
},
},
projects: [
{
name: 'tutorials-setup',
testDir: './e2e/setup',
testMatch: /global-setup\.ts/,
},
{
name: 'tutorials',
use: {
...devices['Desktop Chrome'],
storageState: 'e2e/.auth/admin.json',
},
dependencies: ['tutorials-setup'],
},
],
});