keycloak-scim/js/apps/account-ui/playwright.config.ts
Jon Koops c7361ccf6e
Run the Vite dev server through the Keycloak server (#27311)
Closes #19750
Closes #28643
Closes #30115

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-06-12 11:55:14 +02:00

44 lines
944 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
import { getAccountUrl } from "./test/utils";
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: "./test",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: process.env.CI ? [["github"], ["html"]] : "list",
expect: {
timeout: 20 * 1000,
},
use: {
baseURL: getAccountUrl(),
trace: "on-first-retry",
},
/* Configure projects for major browsers */
projects: [
{
name: "import realms",
testMatch: /realm\.setup\.ts/,
teardown: "del realms",
},
{
name: "del realms",
testMatch: /realm\.teardown\.ts/,
},
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1920, height: 1200 },
},
dependencies: ["import realms"],
},
],
});