2025-01-09 15:49:44 +01:00
|
|
|
import { expect, Page } from "@playwright/test";
|
2025-01-09 15:42:30 +01:00
|
|
|
|
|
|
|
|
const codeTextInput = "code-text-input";
|
|
|
|
|
|
|
|
|
|
export async function emailVerifyScreen(page: Page, code: string) {
|
2025-01-09 15:49:44 +01:00
|
|
|
await page.getByTestId(codeTextInput).pressSequentially(code);
|
2025-01-09 15:42:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function emailVerifyScreenExpect(page: Page, code: string) {
|
2025-01-09 15:49:44 +01:00
|
|
|
await expect(page.getByTestId(codeTextInput)).toHaveValue(code);
|
|
|
|
|
await expect(page.getByTestId("error").locator("div")).toContainText("Could not verify email");
|
2025-01-09 15:42:30 +01:00
|
|
|
}
|