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 }); }