mirror of
https://github.com/hanzo-io/beneficiary.git
synced 2026-10-30 18:58:28 +00:00
18 lines
793 B
TypeScript
18 lines
793 B
TypeScript
export async function login(page) {
|
|
await page.goto("/c/login");
|
|
await page.getByPlaceholder("[email protected]").click();
|
|
await page.getByPlaceholder("[email protected]").fill("Administrator");
|
|
await page.getByPlaceholder("[email protected]").press("Tab");
|
|
await page.getByPlaceholder("••••••").fill("admin");
|
|
await page.getByRole("button", { name: "Log In" }).click();
|
|
}
|
|
|
|
export async function loginToDesk(page) {
|
|
await page.goto("/login");
|
|
await page.getByPlaceholder("[email protected]").click();
|
|
await page.getByPlaceholder("[email protected]").fill("Administrator");
|
|
await page.getByPlaceholder("[email protected]").press("Tab");
|
|
await page.getByPlaceholder("•••••").fill("admin");
|
|
await page.getByPlaceholder("•••••").press("Enter");
|
|
}
|