diff --git a/tests/playwright/pages/Account/Authentication.ts b/tests/playwright/pages/Account/Authentication.ts index c2a17fc8ba..0a073e0e71 100644 --- a/tests/playwright/pages/Account/Authentication.ts +++ b/tests/playwright/pages/Account/Authentication.ts @@ -24,11 +24,11 @@ export class AccountAuthenticationPage extends BasePage { } async verifySAMLProviderCount({ count }: { count: number }) { - expect(await this.get().locator('.nc-saml-provider').count()).toBe(count); + await expect.poll(async () => await this.get().locator('.nc-saml-provider').count()).toBe(count); } async verifyOIDCProviderCount({ count }: { count: number }) { - expect(await this.get().locator('.nc-oidc-provider').count()).toBe(count); + await expect.poll(async () => await this.get().locator('.nc-oidc-provider').count()).toBe(count); } async getProvider(provider: 'saml' | 'oidc', title: string) {