@bigbinary/neeto-playwright-commons 1.22.39 → 1.22.40

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.d.ts CHANGED
@@ -5422,6 +5422,7 @@ declare const NEETO_EDITOR_SELECTORS: {
5422
5422
  calloutTypeOption: string;
5423
5423
  editorMediaUploaderTab: string;
5424
5424
  dynamicVariableSelector: (variable: string) => string;
5425
+ dynamicVariableList: (variable: string) => string;
5425
5426
  neetoEditorFixedMenuFontSize: string;
5426
5427
  highlightText: (textColorIndex: number) => string;
5427
5428
  highlightBg: (bgColorIndex: number) => string;
package/index.js CHANGED
@@ -3755,6 +3755,7 @@ const NEETO_EDITOR_SELECTORS = {
3755
3755
  calloutTypeOption: ".neeto-editor-callout-dropdown__type-option",
3756
3756
  editorMediaUploaderTab: "neeto-editor-media-uploader-local-tab",
3757
3757
  dynamicVariableSelector: (variable) => `dynamic-variables-list-item-${joinHyphenCase(variable)}`,
3758
+ dynamicVariableList: (variable) => `dynamic-variables-list-${hyphenate(variable)}`,
3758
3759
  neetoEditorFixedMenuFontSize: "neeto-editor-fixed-menu-font-size-option",
3759
3760
  highlightText: (textColorIndex) => `--neeto-editor-highlight-text-${textColorIndex}`,
3760
3761
  highlightBg: (bgColorIndex) => `--neeto-editor-highlight-bg-${bgColorIndex}`,
@@ -192706,7 +192707,7 @@ class EditorPage {
192706
192707
  }
192707
192708
  return [{ key: "attachments", value: filePath }];
192708
192709
  };
192709
- this.verifyImageUploadOption = async ({ imageUrl, filePath, isButtonInMoreMenu, shouldRemoveImage = false, }) => {
192710
+ this.verifyImageUploadOption = async ({ filePath, isButtonInMoreMenu, shouldRemoveImage = false, }) => {
192710
192711
  isButtonInMoreMenu && (await this.moreMenuSelector.click());
192711
192712
  await this.imageUploadOption.click();
192712
192713
  await expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.restrictionMessage)).toBeVisible();
@@ -192727,7 +192728,7 @@ class EditorPage {
192727
192728
  timeout: 15000,
192728
192729
  });
192729
192730
  }
192730
- return [{ key: "image-upload", value: imageUrl }];
192731
+ return [{ key: "image-upload", value: imagePath }];
192731
192732
  };
192732
192733
  this.verifyCannedResponseOption = async (isButtonInMoreMenu, cannedResponseSuccessMessage) => {
192733
192734
  isButtonInMoreMenu && (await this.moreMenuSelector.click());
@@ -192860,9 +192861,10 @@ class EditorPage {
192860
192861
  await this.dynamicVariablesButton.click();
192861
192862
  await expect(this.page.getByTestId(COMMON_SELECTORS.dropdownContainer)).toBeVisible();
192862
192863
  await this.page
192863
- .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableSelector(key))
192864
+ .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableList(key))
192865
+ .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableSelector(value))
192864
192866
  .click();
192865
- await expect(this.contentField.getByText(truncate(value, 25))).toBeVisible();
192867
+ await expect(this.contentField.getByText(truncate(`${key}:${value}`, 25))).toBeVisible();
192866
192868
  }
192867
192869
  };
192868
192870
  this.verifyCalloutSelector = async (isButtonInMoreMenu) => {
@@ -199109,7 +199111,7 @@ const definePlaywrightConfig = (overrides) => {
199109
199111
  use: {
199110
199112
  baseURL: process.env.BASE_URL,
199111
199113
  testIdAttribute: "data-cy",
199112
- trace: "retain-on-failure",
199114
+ trace: "on",
199113
199115
  screenshot: "only-on-failure",
199114
199116
  navigationTimeout: 35000,
199115
199117
  actionTimeout: 10 * 1000,