@bigbinary/neeto-playwright-commons 1.26.18 → 1.26.20

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
@@ -4747,6 +4747,7 @@ const COMMON_SELECTORS = {
4747
4747
  columnsDropdownContainer: "customize-columns-dropdown-container",
4748
4748
  columnsDropdownButton: "columns-dropdown-button",
4749
4749
  breadcrumbHeader: "header-breadcrumb",
4750
+ breadcrumb: (title) => `${neetoCist.hyphenate(title)}-breadcrumb`,
4750
4751
  header: "neeto-molecules-header",
4751
4752
  sidebarSubLink: (label) => `${neetoCist.hyphenate(label)}-sub-link`,
4752
4753
  sidebarGoBackButton: (label) => `${neetoCist.hyphenate(label)}-go-back-button`,
@@ -5956,9 +5957,15 @@ class CustomCommands {
5956
5957
  }).toPass({ timeout: 30000 });
5957
5958
  };
5958
5959
  this.verifyBreadcrumbs = async (titlesAndRoutes) => {
5959
- const breadcrumbHeader = this.page.getByTestId(COMMON_SELECTORS.breadcrumbHeader);
5960
- await test.expect(breadcrumbHeader).toHaveCount(titlesAndRoutes.length);
5961
- await Promise.all(titlesAndRoutes.map(({ title, route }) => test.expect(breadcrumbHeader.getByRole("link", { name: title, exact: true })).toHaveAttribute("href", route)));
5960
+ const header = this.page.getByTestId(COMMON_SELECTORS.breadcrumbHeader);
5961
+ const titles = ramda.pluck("title", titlesAndRoutes);
5962
+ const [last, ...links] = titlesAndRoutes.slice().reverse();
5963
+ await Promise.all([
5964
+ test.expect(header).toContainText(titles),
5965
+ test.expect(header).toHaveCount(titlesAndRoutes.length),
5966
+ test.expect(header.getByRole("link", { name: last === null || last === void 0 ? void 0 : last.title, exact: true })).toHaveCount(0),
5967
+ ...links.map(({ title, route }) => test.expect(header.getByRole("link", { name: title, exact: true })).toHaveAttribute("href", route)),
5968
+ ]);
5962
5969
  };
5963
5970
  this.uploadFileViaDispatchV2 = async ({ droppableZone = this.page.getByTestId(COMMON_SELECTORS.fileUploadBody), dispatchEvent = "drop", timeout = 45000, file, }) => {
5964
5971
  const serializedFile = await serializeFileForBrowser(file);
@@ -117159,6 +117166,9 @@ class ZapierPage extends IntegrationBase {
117159
117166
  });
117160
117167
  await this.zapierWebPage.close();
117161
117168
  };
117169
+ /**
117170
+ * @deprecated This method is deprecated. Use reconnectAccount instead.
117171
+ */
117162
117172
  this.reconnectAccountAndPublish = async (zapierApiKey, appName) => {
117163
117173
  var _a;
117164
117174
  await this.zapierWebPage.goto(THIRD_PARTY_ROUTES.zapier.zapEditor(process.env.ZAP_ID));
@@ -117241,6 +117251,9 @@ class ZapierPage extends IntegrationBase {
117241
117251
  .waitFor();
117242
117252
  await test.expect(this.zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.publishingZapHeading)).toBeHidden({ timeout: 15000 });
117243
117253
  };
117254
+ /**
117255
+ * @deprecated This method is deprecated. You do not need to call this method if reconnectAccount is used.
117256
+ */
117244
117257
  this.deleteAllConnections = async (zapierAppLink) => {
117245
117258
  await this.zapierWebPage.goto(zapierAppLink);
117246
117259
  await this.zapierWebPage.waitForLoadState();
@@ -119927,6 +119940,9 @@ const verifyBreadcrumbs = async ({ page, titlesAndRoutes, }) => {
119927
119940
  exact: true,
119928
119941
  })).toHaveAttribute("href", route)));
119929
119942
  };
119943
+ /**
119944
+ * @deprecated This is deprecated. Use neetoPlaywrightUtilities.verifyBreadcrumbs instead.
119945
+ */
119930
119946
  const headerUtils = {
119931
119947
  verifyBreadcrumbs,
119932
119948
  };