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

View File

@@ -0,0 +1,12 @@
import {Page} from "@playwright/test";
export async function changePassword(page: Page, loginname: string, password: string) {
await page.goto('password/change?' + new URLSearchParams({loginName: loginname}));
await changePasswordScreen(page, loginname, password, password)
await page.getByRole('button', {name: 'Continue'}).click();
}
async function changePasswordScreen(page: Page, loginname: string, password1: string, password2: string) {
await page.getByLabel('New Password *').pressSequentially(password1);
await page.getByLabel('Confirm Password *').pressSequentially(password2);
}