chore: add sms otp and password set acceptance tests

This commit is contained in:
Stefan Benz
2024-11-21 18:01:12 +01:00
parent 1baa2409be
commit f38b8b753c
15 changed files with 165 additions and 46 deletions

View File

@@ -1,11 +1,11 @@
import { Page } from "@playwright/test";
import { codeScreen } from "./code-screen";
import { getCodeFromSink } from "./sink";
import { getOtpFromSink } from "./sink";
export async function codeFromSink(page: Page, key: string) {
export async function otpFromSink(page: Page, key: string) {
// wait for send of the code
await page.waitForTimeout(3000);
const c = await getCodeFromSink(key);
const c = await getOtpFromSink(key);
await code(page, c);
}