From 818bd6d7ec3ec1b4b0c3871694f5733f589d208c Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 18 Jul 2023 14:29:36 +0530 Subject: [PATCH] test: experiment with specific delay instead of waitFor Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/pages/Account/Settings.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/playwright/pages/Account/Settings.ts b/tests/playwright/pages/Account/Settings.ts index 5f8c1933cb..be562f7051 100644 --- a/tests/playwright/pages/Account/Settings.ts +++ b/tests/playwright/pages/Account/Settings.ts @@ -20,7 +20,6 @@ export class AccountSettingsPage extends BasePage { } else { await this.rootPage.goto('/#/account/users/settings'); await this.rootPage.waitForTimeout(500); - return; } } @@ -33,7 +32,9 @@ export class AccountSettingsPage extends BasePage { } async getInviteOnlyCheckboxValue() { - await this.get().locator(`.nc-invite-only-signup-checkbox`).waitFor({ state: 'visible' }); + // allow time for the checkbox to be rendered + await this.rootPage.waitForTimeout(1000); + return this.get().locator(`.nc-invite-only-signup-checkbox`).isChecked({ timeout: 1000 }); }