mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 06:22:18 +00:00
13 lines
458 B
TypeScript
13 lines
458 B
TypeScript
|
|
import { expect, Page } from "@playwright/test";
|
||
|
|
|
||
|
|
const codeTextInput = "code-text-input";
|
||
|
|
|
||
|
|
export async function codeScreen(page: Page, code: string) {
|
||
|
|
await page.getByTestId(codeTextInput).pressSequentially(code);
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function codeScreenExpect(page: Page, code: string) {
|
||
|
|
await expect(page.getByTestId(codeTextInput)).toHaveValue(code);
|
||
|
|
await expect(page.getByTestId("error").locator("div")).toContainText("Could not verify OTP code");
|
||
|
|
}
|