keycloak-scim/js/apps/account-ui/playwright.config.ts
Hynek Mlnarik 7b384280b6 Tests for applications page
Fixes: #21249

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
2024-02-26 13:24:06 +01:00

39 lines
893 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
/**
* 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",
use: {
baseURL: process.env.CI
? "http://localhost:8080/realms/master/account/"
: "http://localhost:8080/",
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"],
},
dependencies: ["import realms"],
},
],
});