-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
50 lines (48 loc) · 1.11 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
import type { PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig = {
testDir: "./tests",
use: {
headless: true,
baseURL: "http://localhost",
viewport: { width: 1366, height: 1024 },
screenshot: "only-on-failure",
//video: "on", // debug
},
projects: [
{
name: "backoffice login",
testDir: "./tests/backoffice",
testMatch: /login-admin\.setup\.ts/,
},
{
name: "backoffice",
dependencies: ["backoffice login"],
use: {
storageState: "playwright/auth/backoffice-admin.json",
},
testMatch: /backoffice\/.*\.spec\.ts/,
},
{
name: "webapp login",
testDir: "./tests/webapp",
testMatch: /login\.setup\.ts/,
},
{
name: "webapp",
dependencies: ["webapp login"],
use: {
storageState: "playwright/auth/webapp-student.json",
},
testMatch: /webapp\/.*\.spec\.ts/,
},
{
name: "API",
testMatch: /api\/.*\.spec\.ts/,
},
{
name: "Documentação",
testMatch: /docs\/.*\.spec\.ts/,
},
],
};
export default config;