chore: add basic acceptance tests

This commit is contained in:
Stefan Benz
2024-10-28 19:44:50 +01:00
parent bfd8a7c9e1
commit 9af39ac1bc
12 changed files with 484 additions and 75 deletions

19
acceptance/tests/login.ts Normal file
View File

@@ -0,0 +1,19 @@
import {Page} from "@playwright/test";
export async function loginWithPassword(page: Page, username: string, password: string) {
await page.goto("/loginname");
const loginname = page.getByLabel("Loginname");
await loginname.pressSequentially(username);
await loginname.press("Enter");
const pw = page.getByLabel("Password");
await pw.pressSequentially(password);
await pw.press("Enter");
}
export async function loginWithPasskey(page: Page, username: string) {
await page.goto("/loginname");
const loginname = page.getByLabel("Loginname");
await loginname.pressSequentially(username);
await loginname.press("Enter");
}