-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplaywright.config.ts
57 lines (57 loc) · 1.13 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
47
48
49
50
51
52
53
54
55
56
57
import { defineConfig } from '@playwright/test';
export default defineConfig({
// test for development version
// webServer: {
// command: 'npm run dev',
// url: 'http://localhost:5173',
// timeout: 20000,
// reuseExistingServer: true
// },
// use: {
// baseURL: 'http://localhost:5173/',
// locale: 'de-DE',
// timezoneId: 'Europe/Berlin',
// },
webServer: {
command: 'docker compose up prima',
url: 'http://127.0.0.1:7777',
timeout: 20000,
reuseExistingServer: true
},
use: {
baseURL: 'http://localhost:7777/',
locale: 'de-DE',
timezoneId: 'Europe/Berlin',
screenshot: 'only-on-failure',
launchOptions: {
slowMo: 0
}
},
testDir: './tests',
projects: [
{
name: 'setup db',
testMatch: 'db.setup.ts'
},
{
name: 'login',
testMatch: 'login.setup.ts',
dependencies: ['setup db']
},
{
name: 'entrepreneurAssignsRoles',
testMatch: 'entrepreneurAssignsRoles.ts',
dependencies: ['login']
},
{
name: 'availability',
testMatch: 'availability.ts',
dependencies: ['login']
},
{
name: 'move tour',
testMatch: 'moveTour.ts',
dependencies: ['availability']
}
]
});