From 515585091c72e3628c5cd74718ed273f07c2365a Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 15 Feb 2024 19:38:12 +0000 Subject: [PATCH] test(playwright): change button selector with `a` --- tests/playwright/pages/SsoIdpPage/GoogleLoginPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/pages/SsoIdpPage/GoogleLoginPage.ts b/tests/playwright/pages/SsoIdpPage/GoogleLoginPage.ts index 23aedca43f..c6925639ce 100644 --- a/tests/playwright/pages/SsoIdpPage/GoogleLoginPage.ts +++ b/tests/playwright/pages/SsoIdpPage/GoogleLoginPage.ts @@ -15,7 +15,7 @@ export class GoogleLoginPage extends BasePage { // reload page to get latest app info await this.rootPage.reload({ waitUntil: 'networkidle' }); // click sign in with SAML - await this.rootPage.locator(`button:has-text("Sign in with google")`).click(); + await this.rootPage.locator(`a:has-text("Sign in with google")`).click(); await this.rootPage.waitForNavigation({ url: /accounts\.google\.com/ }); }