chore: more acceptance tests

This commit is contained in:
Stefan Benz
2024-11-13 19:48:25 +01:00
parent be4a20b29b
commit 350c6450fd
17 changed files with 342 additions and 147 deletions

View File

@@ -0,0 +1,12 @@
import {expect, Page} from "@playwright/test";
const usernameUserInput = "username-text-input"
export async function loginnameScreen(page: Page, username: string) {
await page.getByTestId(usernameUserInput).pressSequentially(username);
}
export async function loginnameScreenExpect(page: Page, username: string) {
await expect(page.getByTestId(usernameUserInput)).toHaveValue(username);
await expect(page.getByTestId('error').locator('div')).toContainText("Could not find user")
}