@bigbinary/neeto-playwright-commons 1.25.0 → 1.25.1

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
@@ -4851,9 +4851,9 @@ const NEETO_EDITOR_SELECTORS = {
4851
4851
  todoListOption: optionSelector("todoList"),
4852
4852
  editorMenuWrapper: "neeto-editor-fixed-menu-wrapper",
4853
4853
  dataEmojiType: (type) => `[data-emoji="${type}"]`,
4854
- //Use data-cy once https://github.com/neetozone/neeto-editor/issues/1651 is resolved
4854
+ //Use data-testid once https://github.com/neetozone/neeto-editor/issues/1651 is resolved
4855
4855
  calloutContent: ".callout-content",
4856
- //Use data-cy once https://github.com/neetozone/neeto-editor/issues/1648 is resolved
4856
+ //Use data-testid once https://github.com/neetozone/neeto-editor/issues/1648 is resolved
4857
4857
  calloutTypeOption: ".neeto-editor-callout-dropdown__type-option",
4858
4858
  editorMediaUploaderTab: "neeto-editor-media-uploader-local-tab",
4859
4859
  dynamicVariableSelector: (variable) => `dynamic-variables-list-item-${joinHyphenCase(variable)}`,
@@ -113943,7 +113943,7 @@ class HelpAndProfilePage {
113943
113943
  const replayAppLink = this.page.getByTestId(COMMON_SELECTORS.appLink("Replay"));
113944
113944
  const searchInput = this.page.getByTestId(COMMON_SELECTORS.productSwitcherSearchInput);
113945
113945
  await searchInput.fill(faker.faker.word.words(3));
113946
- //TODO: Use data-cy label when this https://github.com/bigbinary/neeto-molecules/issues/2114 is resolved
113946
+ //TODO: Use data-testid label when this https://github.com/bigbinary/neeto-molecules/issues/2114 is resolved
113947
113947
  await test.expect(this.page.getByText(this.t("neetoMolecules.productSwitcher.noApps"))).toBeVisible();
113948
113948
  await searchInput.fill(searchQueryPartial);
113949
113949
  await Promise.all([
@@ -113971,7 +113971,7 @@ class HelpAndProfilePage {
113971
113971
  const replayAppLink = this.page.getByTestId(COMMON_SELECTORS.appLink("Replay"));
113972
113972
  const searchInput = this.page.getByTestId(COMMON_SELECTORS.productSwitcherSearchInput);
113973
113973
  await searchInput.fill(faker.faker.word.words(3));
113974
- //TODO: Use data-cy label when this https://github.com/bigbinary/neeto-molecules/issues/2114 is resolved
113974
+ //TODO: Use data-testid label when this https://github.com/bigbinary/neeto-molecules/issues/2114 is resolved
113975
113975
  await test.expect(this.page.getByText(this.t("neetoMolecules.productSwitcher.noApps"))).toBeVisible();
113976
113976
  await searchInput.fill(searchQueryPartial);
113977
113977
  await Promise.all([
@@ -116785,7 +116785,7 @@ class ZapierPage extends IntegrationBase {
116785
116785
  await signInPage.waitForLoadState();
116786
116786
  await test.expect(signInPage.getByRole("heading", { name: ZAPIER_WEB_TEXTS.loading })).toBeHidden({ timeout: 10000 });
116787
116787
  // The zapier connect page have two custom fm-prettytext boxes
116788
- // (not an input/textarea) without aria-label or data-cy
116788
+ // (not an input/textarea) without aria-label or data-testid
116789
116789
  const prettyTextBox = signInPage.locator(ZAPIER_SELECTORS.fmPrettytext);
116790
116790
  // eslint-disable-next-line playwright/no-nth-methods
116791
116791
  const subdomainBox = prettyTextBox.nth(0);
@@ -117075,8 +117075,8 @@ class EditorPage {
117075
117075
  .all();
117076
117076
  (await this.moreMenuSelector.isVisible()) && fixedMenuButtons.pop();
117077
117077
  return Promise.all(fixedMenuButtons.map(async (button) => {
117078
- const dataCy = await button.getAttribute("data-cy");
117079
- return this.cleanString(dataCy);
117078
+ const dataTestid = await button.getAttribute("data-testid");
117079
+ return this.cleanString(dataTestid);
117080
117080
  }));
117081
117081
  };
117082
117082
  this.moreMenuOptions = async () => {
@@ -117084,8 +117084,8 @@ class EditorPage {
117084
117084
  const dropdownContainer = this.page.getByTestId(COMMON_SELECTORS.dropdownContainer);
117085
117085
  const moreMenuButtons = await dropdownContainer.getByRole("button").all();
117086
117086
  const moreMenuButtonLocators = Promise.all(moreMenuButtons.map(async (button) => {
117087
- const dataCy = await button.getAttribute("data-cy");
117088
- return this.cleanString(dataCy);
117087
+ const dataTestid = await button.getAttribute("data-testid");
117088
+ return this.cleanString(dataTestid);
117089
117089
  }));
117090
117090
  await this.moreMenuSelector.click();
117091
117091
  await test.expect(dropdownContainer).toBeHidden();
@@ -117100,8 +117100,8 @@ class EditorPage {
117100
117100
  .getByRole("button")
117101
117101
  .all();
117102
117102
  const headingLevels = (await Promise.all(headingButtons.map(async (button) => {
117103
- const dataCy = await button.getAttribute("data-cy");
117104
- const headingLevel = dataCy === null || dataCy === void 0 ? void 0 : dataCy.split("-").pop();
117103
+ const dataTestid = await button.getAttribute("data-testid");
117104
+ const headingLevel = dataTestid === null || dataTestid === void 0 ? void 0 : dataTestid.split("-").pop();
117105
117105
  return /^h[1-5]$/.test(headingLevel || "") ? headingLevel : null;
117106
117106
  }))).filter(Boolean);
117107
117107
  const fontSizeDropdown = this.editorWrapper.getByTestId(NEETO_EDITOR_SELECTORS.fontSize);
@@ -124123,7 +124123,6 @@ const definePlaywrightConfig = (overrides) => {
124123
124123
  ...globalOverrides,
124124
124124
  use: {
124125
124125
  baseURL: process.env.BASE_URL,
124126
- testIdAttribute: "data-cy",
124127
124126
  trace: "on",
124128
124127
  screenshot: "only-on-failure",
124129
124128
  navigationTimeout: 35000,