@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.cjs.js CHANGED
@@ -3775,6 +3775,7 @@ const NEETO_EDITOR_SELECTORS = {
3775
3775
  calloutTypeOption: ".neeto-editor-callout-dropdown__type-option",
3776
3776
  editorMediaUploaderTab: "neeto-editor-media-uploader-local-tab",
3777
3777
  dynamicVariableSelector: (variable) => `dynamic-variables-list-item-${joinHyphenCase(variable)}`,
3778
+ dynamicVariableList: (variable) => `dynamic-variables-list-${neetoCist.hyphenate(variable)}`,
3778
3779
  neetoEditorFixedMenuFontSize: "neeto-editor-fixed-menu-font-size-option",
3779
3780
  highlightText: (textColorIndex) => `--neeto-editor-highlight-text-${textColorIndex}`,
3780
3781
  highlightBg: (bgColorIndex) => `--neeto-editor-highlight-bg-${bgColorIndex}`,
@@ -192726,7 +192727,7 @@ class EditorPage {
192726
192727
  }
192727
192728
  return [{ key: "attachments", value: filePath }];
192728
192729
  };
192729
- this.verifyImageUploadOption = async ({ imageUrl, filePath, isButtonInMoreMenu, shouldRemoveImage = false, }) => {
192730
+ this.verifyImageUploadOption = async ({ filePath, isButtonInMoreMenu, shouldRemoveImage = false, }) => {
192730
192731
  isButtonInMoreMenu && (await this.moreMenuSelector.click());
192731
192732
  await this.imageUploadOption.click();
192732
192733
  await test$1.expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.restrictionMessage)).toBeVisible();
@@ -192747,7 +192748,7 @@ class EditorPage {
192747
192748
  timeout: 15000,
192748
192749
  });
192749
192750
  }
192750
- return [{ key: "image-upload", value: imageUrl }];
192751
+ return [{ key: "image-upload", value: imagePath }];
192751
192752
  };
192752
192753
  this.verifyCannedResponseOption = async (isButtonInMoreMenu, cannedResponseSuccessMessage) => {
192753
192754
  isButtonInMoreMenu && (await this.moreMenuSelector.click());
@@ -192880,9 +192881,10 @@ class EditorPage {
192880
192881
  await this.dynamicVariablesButton.click();
192881
192882
  await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.dropdownContainer)).toBeVisible();
192882
192883
  await this.page
192883
- .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableSelector(key))
192884
+ .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableList(key))
192885
+ .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableSelector(value))
192884
192886
  .click();
192885
- await test$1.expect(this.contentField.getByText(neetoCist.truncate(value, 25))).toBeVisible();
192887
+ await test$1.expect(this.contentField.getByText(neetoCist.truncate(`${key}:${value}`, 25))).toBeVisible();
192886
192888
  }
192887
192889
  };
192888
192890
  this.verifyCalloutSelector = async (isButtonInMoreMenu) => {
@@ -199129,7 +199131,7 @@ const definePlaywrightConfig = (overrides) => {
199129
199131
  use: {
199130
199132
  baseURL: process.env.BASE_URL,
199131
199133
  testIdAttribute: "data-cy",
199132
- trace: "retain-on-failure",
199134
+ trace: "on",
199133
199135
  screenshot: "only-on-failure",
199134
199136
  navigationTimeout: 35000,
199135
199137
  actionTimeout: 10 * 1000,