From a1712b8967a452a8f9a8831af89e3906ead13a95 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 15 Feb 2024 19:38:12 +0000 Subject: [PATCH] test(playwright): classname correction --- tests/playwright/pages/Account/Authentication.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/playwright/pages/Account/Authentication.ts b/tests/playwright/pages/Account/Authentication.ts index 162254687e..498ffa1775 100644 --- a/tests/playwright/pages/Account/Authentication.ts +++ b/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}"]`); } - async deleteProvider(provider: 'saml' | 'oidc', title: string) { - await this.rootPage.locator(`.nc-${provider}-${title}-more-option`).click(); + async deleteProvider(provider: 'saml' | 'oidc' | 'google', title: string) { + await this.rootPage + .locator(provider === 'google' ? '.nc-google-more-option' : `.nc-${provider}-${title}-more-option`) + .click(); await this.waitForResponse({ uiAction: () => this.rootPage.locator(`[data-test-id="nc-${provider}-delete"]`).click(), httpMethodsToMatch: ['DELETE'],