From c7d3d087082e71e7e8ac56823f374af0b2e3d896 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sun, 5 Feb 2023 03:01:04 +0300 Subject: [PATCH] test: add a small delay after sign out Signed-off-by: mertmit --- tests/playwright/pages/Dashboard/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/playwright/pages/Dashboard/index.ts b/tests/playwright/pages/Dashboard/index.ts index bbfab4c6db..d90b88a80e 100644 --- a/tests/playwright/pages/Dashboard/index.ts +++ b/tests/playwright/pages/Dashboard/index.ts @@ -129,6 +129,7 @@ export class DashboardPage extends BasePage { await projMenu.locator('[data-menu-id="account"]:visible').click(); await this.rootPage.locator('div.nc-project-menu-item:has-text("Sign Out"):visible').click(); await this.rootPage.locator('[data-testid="nc-form-signin"]:visible').waitFor(); + await new Promise(resolve => setTimeout(resolve, 150)); } async validateProjectMenu(param: { role: string; mode?: string }) {