@bigbinary/neeto-playwright-commons 1.13.11 → 1.13.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -25001,11 +25001,14 @@ class OrganizationPage {
25001
25001
  }
25002
25002
  }
25003
25003
  };
25004
- this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout = 15000) => {
25004
+ this.loginViaSSO = async (email = generateRandomBypassEmail(), loginTimeout = 2 * 60 * 1000) => {
25005
25005
  await this.page.getByTestId(LOGIN_SELECTORS.emailTextField).fill(email);
25006
+ const unregisteredEmailError = this.page.getByTestId(SIGNUP_SELECTORS.unregisterdEmailError);
25006
25007
  await test$1.expect(async () => {
25007
25008
  await this.page.getByTestId(LOGIN_SELECTORS.submitButton).click();
25008
- await test$1.expect(this.page.getByTestId(SIGNUP_SELECTORS.unregisterdEmailError)).toBeHidden();
25009
+ await test$1.expect(unregisteredEmailError).toBeHidden();
25010
+ await this.neetoPlaywrightUtilities.waitForPageLoad();
25011
+ await test$1.expect(unregisteredEmailError).toBeHidden();
25009
25012
  }).toPass({ timeout: loginTimeout });
25010
25013
  await this.page
25011
25014
  .getByTestId(SIGNUP_SELECTORS.otpTextBox)