1049ad8edf
* added test for the groups tab of the account-ui * simplified groups realm setup * fixed url * changed login to add realm * set account ui v3 as theme
59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
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: process.env.CI ? 1 : undefined,
|
|
reporter: "html",
|
|
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: "setup", testMatch: /.auth\.setup\.ts/ },
|
|
{
|
|
name: "import test realm",
|
|
testMatch: /test-realm\.setup\.ts/,
|
|
teardown: "del test realm",
|
|
},
|
|
{
|
|
name: "del test realm",
|
|
testMatch: /test-realm\.teardown\.ts/,
|
|
},
|
|
{
|
|
name: "chromium",
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
storageState: ".auth/user.json",
|
|
},
|
|
dependencies: ["setup"],
|
|
testIgnore: ["**/*my-resources.spec.ts"],
|
|
},
|
|
|
|
{
|
|
name: "firefox",
|
|
use: {
|
|
...devices["Desktop Firefox"],
|
|
storageState: ".auth/user.json",
|
|
},
|
|
dependencies: ["setup"],
|
|
testIgnore: ["**/*my-resources.spec.ts"],
|
|
},
|
|
|
|
{
|
|
name: "resources",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
dependencies: ["import test realm"],
|
|
testMatch: ["**/*my-resources.spec.ts"],
|
|
},
|
|
],
|
|
});
|