keycloak-scim/js/apps/account-ui/test/login.ts
2023-07-07 14:34:54 +00:00

7 lines
302 B
TypeScript

import { Page } from "@playwright/test";
export const login = async (page: Page, username: string, password: string) => {
await page.getByLabel("Username or email").fill(username);
await page.getByLabel("Password").fill(password);
await page.getByRole("button", { name: "Sign In" }).click();
};