keycloak-scim/js/apps/account-ui/test/login.ts

8 lines
293 B
TypeScript
Raw Normal View History

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