-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
46 lines (42 loc) · 1.23 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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
reporter: 'html',
/* Shared settings for all the projects below.*/
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:3002',
},
/* Configure projects for major browsers */
projects: [
// This project runs setup files (authentication...)
{
name: 'setup',
testDir: './tests',
testMatch: /.*\.setup\.ts/
},
{
name: 'chromium',
dependencies: ['setup'], // This project can run only after the setup project
use: { ...devices['Desktop Chrome'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// dependencies: ['setup'], // This project can run only after the setup project
// },
//
// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// dependencies: ['setup'], // This project can run only after the setup project
//
// },
],
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run dev',
// url: 'http://localhost:5173',
// reuseExistingServer: !process.env.CI,
// },
});