Browse Source

test: add retry mechanism for count check

pull/7569/head
Pranav C 9 months ago
parent
commit
6a0c752a65
  1. 4
      tests/playwright/pages/Account/Authentication.ts

4
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) {

Loading…
Cancel
Save