-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
43 lines (41 loc) · 929 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
import { defineConfig, devices } from '@playwright/test';
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// import path from 'path';
// dotenv.config({ path: path.resolve(__dirname, '.env') });
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
fullyParallel: true,
expect: {
timeout: 15000,
},
webServer: {
command: 'npm run serve',
port: 4321,
reuseExistingServer: true,
},
reporter: 'html',
/* Configure projects for major browsers */
projects: [
{
name: 'desktop-chrome',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1440, height: 900 },
},
},
{
name: 'mobile-chrome',
use: {
...devices['Desktop Chrome'],
viewport: { width: 375, height: 667 },
},
},
],
});