Browse Source

test: add a small delay after sign out

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5095/head
mertmit 2 years ago
parent
commit
c7d3d08708
  1. 1
      tests/playwright/pages/Dashboard/index.ts

1
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 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('div.nc-project-menu-item:has-text("Sign Out"):visible').click();
await this.rootPage.locator('[data-testid="nc-form-signin"]:visible').waitFor(); 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 }) { async validateProjectMenu(param: { role: string; mode?: string }) {

Loading…
Cancel
Save