Browse Source

test(playwright): classname correction

pull/7650/head
Pranav C 9 months ago
parent
commit
a1712b8967
  1. 6
      tests/playwright/pages/Account/Authentication.ts

6
tests/playwright/pages/Account/Authentication.ts

@ -35,8 +35,10 @@ export class AccountAuthenticationPage extends BasePage {
return this.rootPage.locator(`[data-test-id="nc-${provider}-provider-${title}"]`); return this.rootPage.locator(`[data-test-id="nc-${provider}-provider-${title}"]`);
} }
async deleteProvider(provider: 'saml' | 'oidc', title: string) { async deleteProvider(provider: 'saml' | 'oidc' | 'google', title: string) {
await this.rootPage.locator(`.nc-${provider}-${title}-more-option`).click(); await this.rootPage
.locator(provider === 'google' ? '.nc-google-more-option' : `.nc-${provider}-${title}-more-option`)
.click();
await this.waitForResponse({ await this.waitForResponse({
uiAction: () => this.rootPage.locator(`[data-test-id="nc-${provider}-delete"]`).click(), uiAction: () => this.rootPage.locator(`[data-test-id="nc-${provider}-delete"]`).click(),
httpMethodsToMatch: ['DELETE'], httpMethodsToMatch: ['DELETE'],

Loading…
Cancel
Save