From f3195c307ca404eaf0bb9850f7034a293e0a6b99 Mon Sep 17 00:00:00 2001 From: Harry Le Date: Tue, 3 Sep 2024 09:25:11 +0700 Subject: [PATCH] test: fix delay auth service - mandatory case --- authservice/login-with-passwordless/AuthServicePage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authservice/login-with-passwordless/AuthServicePage.ts b/authservice/login-with-passwordless/AuthServicePage.ts index 3108d6c..8a34cd2 100644 --- a/authservice/login-with-passwordless/AuthServicePage.ts +++ b/authservice/login-with-passwordless/AuthServicePage.ts @@ -63,13 +63,13 @@ export class AuthServicePage { await this.page.keyboard.press("Delete"); } + await delay(15000); const newToken = speakeasy.totp({ secret, encoding: "base32", step: 30, }); - await delay(15000); await this.page.locator(`xpath=.//input[@data-test='single-input']`).first().type(newToken); } }