-
Notifications
You must be signed in to change notification settings - Fork 1
/
playwright.config.ts
43 lines (42 loc) · 1.05 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
import {defineConfig, devices} from '@playwright/test';
export default defineConfig({
testDir: `./test`,
forbidOnly: !!process.env.CI,
reporter: `list`,
use: {viewport: {width: 1024, height: 768}},
projects: [
{
name: `setup-localhost`,
testMatch: /.*\.setup\.ts/,
use: {baseURL: `http://localhost:3000`},
},
{
name: `setup-bookmark.wtf`,
testMatch: /.*\.setup\.ts/,
use: {baseURL: `https://bookmark.wtf`},
},
{
name: `localhost`,
dependencies: [`setup-localhost`],
use: {
...devices[`Desktop Chrome`],
baseURL: `http://localhost:3000`,
storageState: `playwright/.auth/user.json`,
},
},
{
name: `bookmark.wtf`,
dependencies: [`setup-bookmark.wtf`],
use: {
...devices[`Desktop Chrome`],
baseURL: `https://bookmark.wtf`,
storageState: `playwright/.auth/user.json`,
},
},
],
webServer: {
command: `npm run start`,
url: `http://localhost:3000`,
reuseExistingServer: !process.env.CI,
},
});