@bigbinary/neeto-playwright-commons 1.10.3 → 1.10.4

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
@@ -14264,8 +14264,10 @@ class TeamMembers {
14264
14264
  .click();
14265
14265
  await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
14266
14266
  }
14267
- await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
14268
- await expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
14267
+ await expect(async () => {
14268
+ await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
14269
+ await expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
14270
+ }).toPass({ timeout: 20000 });
14269
14271
  await this.neetoPlaywrightUtilities.waitForPageLoad();
14270
14272
  await this.neetoPlaywrightUtilities.verifyToast();
14271
14273
  };
@@ -14276,7 +14278,8 @@ class TeamMembers {
14276
14278
  });
14277
14279
  await this.page.getByTestId(MEMBER_SELECTORS.searchTextField).fill(email);
14278
14280
  await searchMembers;
14279
- await expect(this.page.getByTestId(NEETO_FILTERS_SELECTORS.searchTermBlock)).toContainText(email);
14281
+ const emailSubstr = email.length > 20 ? email.substring(0, 20) : email;
14282
+ await expect(this.page.getByTestId(NEETO_FILTERS_SELECTORS.searchTermBlock)).toContainText(emailSubstr);
14280
14283
  await expect(this.page.getByRole("cell", { name: email, exact: true })).toBeVisible();
14281
14284
  await expect(this.page.getByTestId(COMMON_SELECTORS.tableSpinner)).toBeHidden();
14282
14285
  };