keycloak-scim/js/apps/account-ui/test/auth.setup.ts

13 lines
320 B
TypeScript
Raw Normal View History

import { test as setup } from "@playwright/test";
import { login } from "./login";
const authFile = ".auth/user.json";
setup("authenticate", async ({ page }) => {
await page.goto("/");
await login(page, "admin", "admin");
await page.waitForURL("/");
await page.context().storageState({ path: authFile });
});