Keycloak
38 строк · 885.0 Байт
1import { defineConfig, devices } from "@playwright/test";
2import { getRootPath } from "./src/utils/getRootPath";
3
4/**
5* See https://playwright.dev/docs/test-configuration.
6*/
7export default defineConfig({
8testDir: "./test",
9fullyParallel: true,
10forbidOnly: !!process.env.CI,
11retries: process.env.CI ? 2 : 0,
12workers: 1,
13reporter: process.env.CI ? [["github"], ["html"]] : "list",
14use: {
15baseURL: `http://localhost:8080${getRootPath()}`,
16trace: "on-first-retry",
17},
18
19/* Configure projects for major browsers */
20projects: [
21{
22name: "import realms",
23testMatch: /realm\.setup\.ts/,
24teardown: "del realms",
25},
26{
27name: "del realms",
28testMatch: /realm\.teardown\.ts/,
29},
30{
31name: "chromium",
32use: {
33...devices["Desktop Chrome"],
34},
35dependencies: ["import realms"],
36},
37],
38});
39