mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 03:23:40 +00:00
chore: add basic acceptance tests
This commit is contained in:
12
acceptance/tests/password.ts
Normal file
12
acceptance/tests/password.ts
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user