@bigbinary/neeto-playwright-commons 1.26.15 → 1.26.17

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
@@ -5101,7 +5101,7 @@ const NEETO_EDITOR_SELECTORS = {
5101
5101
  videoWrapper: "neeto-editor-video-wrapper",
5102
5102
  paragraphOption: fixedMenuSelector("font-size-option-body2"),
5103
5103
  calloutOption: fixedMenuSelector("callout-option"),
5104
- attachmentPreview: "ne-attachments-wrapper",
5104
+ attachmentPreview: "neeto-editor-fixed-menu-attachments-option",
5105
5105
  imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
5106
5106
  errorText: "neeto-editor-error-text",
5107
5107
  content: "editor-content",
@@ -5878,16 +5878,26 @@ class CustomCommands {
5878
5878
  (await test.expect(tooltipBox.getByRole("heading", { name: title })).toBeVisible());
5879
5879
  content && (await test.expect(tooltipBox).toContainText(content));
5880
5880
  helpURL &&
5881
- (await test.expect(tooltipBox.getByTestId(COMMON_SELECTORS.helpPopoverLinkButton)).toHaveAttribute("href", new RegExp(helpURL, "i")));
5881
+ (await Promise.all([
5882
+ this.assertHelpURLIsValid(helpURL),
5883
+ test.expect(tooltipBox.getByTestId(COMMON_SELECTORS.helpPopoverLinkButton)).toHaveAttribute("href", new RegExp(helpURL, "i")),
5884
+ ]));
5882
5885
  await this.hideTooltip(triggerElement, customPageContext);
5883
5886
  };
5887
+ this.assertHelpURLIsValid = async (helpURL) => {
5888
+ const response = await this.request.get(helpURL);
5889
+ await test.expect(response).toBeOK();
5890
+ };
5884
5891
  this.verifyHelpText = async (helpURL) => {
5885
5892
  const isNoDataTitleHidden = await this.page
5886
5893
  .getByTestId(COMMON_SELECTORS.noDataTitle)
5887
5894
  .isHidden();
5888
5895
  if (isNoDataTitleHidden)
5889
5896
  return;
5890
- await test.expect(this.page.getByTestId(COMMON_SELECTORS.noDataHelpText).getByRole("link")).toHaveAttribute("href", new RegExp(helpURL, "i"));
5897
+ await Promise.all([
5898
+ this.assertHelpURLIsValid(helpURL),
5899
+ test.expect(this.page.getByTestId(COMMON_SELECTORS.noDataHelpText).getByRole("link")).toHaveAttribute("href", new RegExp(helpURL, "i")),
5900
+ ]);
5891
5901
  };
5892
5902
  this.verifySearchTermBlock = async (searchTerm) => {
5893
5903
  const filtersSearchTermBlock = this.page.getByTestId(NEETO_FILTERS_SELECTORS.filtersTermBlock());