@bigbinary/neeto-playwright-commons 1.8.0 → 1.8.2

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.js CHANGED
@@ -183,7 +183,7 @@ class CustomCommands {
183
183
  await this.recursiveMethod(callback, condition, timeout, startTime);
184
184
  };
185
185
  this.verifySuccessToast = async ({ message = "", closeAfterVerification = true, } = {}) => {
186
- if (isEmpty$1(message)) {
186
+ if (!isEmpty$1(message)) {
187
187
  await expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message);
188
188
  }
189
189
  else {
@@ -7479,6 +7479,7 @@ class OrganizationPage {
7479
7479
  await this.page.getByTestId(SIGNUP_SELECTORS.emailTextField).fill(email);
7480
7480
  const signup = this.neetoPlaywrightUtilities.interceptMultipleResponses({
7481
7481
  responseUrl: ROUTES.signup,
7482
+ timeout: 60 * 1000,
7482
7483
  baseUrl: NEETO_AUTH_BASE_URL(),
7483
7484
  });
7484
7485
  await this.page.getByTestId(SIGNUP_SELECTORS.submitButton).click();
@@ -7504,7 +7505,7 @@ class OrganizationPage {
7504
7505
  this.page.waitForResponse(response => response.url().includes(ROUTES.signup)),
7505
7506
  this.page.waitForResponse(response => response.url().includes(ROUTES.countries)),
7506
7507
  ]);
7507
- await this.page.waitForURL(`**${ROUTES.profile}`, { timeout: 15000 });
7508
+ await this.page.waitForURL(`**${ROUTES.profile}`, { timeout: 60 * 1000 });
7508
7509
  await this.page
7509
7510
  .getByTestId(SIGNUP_SELECTORS.firstNameTextField)
7510
7511
  .fill(firstName);
@@ -7514,6 +7515,7 @@ class OrganizationPage {
7514
7515
  await this.page.getByTestId(COMMON_SELECTORS.checkbox).click();
7515
7516
  const submitProfile = this.neetoPlaywrightUtilities.interceptMultipleResponses({
7516
7517
  responseUrl: ROUTES.signup,
7518
+ timeout: 1000 * 60,
7517
7519
  baseUrl: NEETO_AUTH_BASE_URL(),
7518
7520
  });
7519
7521
  await this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton).click();