-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathplaywright-homespec.config.ts
42 lines (40 loc) · 1.04 KB
/
playwright-homespec.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
import { defineConfig } from "@playwright/test";
import type { APIRequestOptions } from "./lib/fixtures/apiRequest";
import { TestOptions } from "./lib/pages";
require("dotenv").config();
export default defineConfig<APIRequestOptions & TestOptions>({
timeout: 30_000,
projects: [
{
name: "ui-tests",
},
],
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 2,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI
? [["list"], ["html"], ["@currents/playwright"]]
: [
["html"],
["list"],
//["indent-list-reporter"],
// {
// baseColors: {
// specFileNameColor: "white",
// suiteDescriptionColor: "blue",
// testCaseTitleColor: "magenta",
// },
// },
],
use: {
testIdAttribute: "data-test",
baseURL: process.env.UI_URL,
apiURL: process.env.API_URL,
apiBaseURL: process.env.API_URL,
trace: "on",
screenshot: "on",
video: "on",
},
});