test: google auth sso test correction

This commit is contained in:
Pranav C
2025-09-17 08:43:30 +00:00
parent 50097ab05a
commit 2b89fa54b9

View File

@@ -17,9 +17,10 @@ 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(`a:has-text("Sign in with google")`).click();
await this.rootPage.waitForNavigation({ url: /accounts\.google\.com/ });
await Promise.all([
this.rootPage.waitForNavigation({ url: /accounts\.google\.com/, waitUntil: 'networkidle' }),
this.rootPage.locator(`a:has-text("Sign in with google")`).click(),
]);
}
get() {