@bigbinary/neeto-playwright-commons 1.9.8 → 1.9.10

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
@@ -1517,6 +1517,7 @@ declare const NEETO_EDITOR_SELECTORS: {
1517
1517
  videoWrapper: string;
1518
1518
  paragraphOption: string;
1519
1519
  attachmentPreview: string;
1520
+ imageUploadLinkButton: string;
1520
1521
  };
1521
1522
  declare const NEETO_TEXT_MODIFIER_SELECTORS: {
1522
1523
  strikeOption: string;
package/index.js CHANGED
@@ -12767,14 +12767,18 @@ class HelpAndProfilePage {
12767
12767
  await expect(this.page.getByTestId(HELP_CENTER_SELECTORS.chatButton)).toBeVisible();
12768
12768
  }).toPass({ timeout: 15000 });
12769
12769
  };
12770
- this.openLiveChatAndVerify = async () => {
12770
+ this.openLiveChatAndVerify = async (widgetVisibilityTimeout = 10000) => {
12771
12771
  await expect(async () => {
12772
12772
  await this.openHelpCenterV2();
12773
12773
  await this.page.getByTestId(HELP_CENTER_SELECTORS.chatButton).click();
12774
- await expect(this.neetoChatWidget).toBeVisible();
12774
+ await expect(this.neetoChatWidget).toBeVisible({
12775
+ timeout: widgetVisibilityTimeout,
12776
+ });
12775
12777
  await expect(this.neetoChatSpinner).toBeHidden({ timeout: 20 * 1000 });
12776
- await expect(this.neetoChatWidget).toBeVisible();
12777
- }).toPass({ timeout: 45000 });
12778
+ await expect(this.neetoChatWidget).toBeVisible({
12779
+ timeout: widgetVisibilityTimeout,
12780
+ });
12781
+ }).toPass({ timeout: 35000 + widgetVisibilityTimeout * 2 });
12778
12782
  };
12779
12783
  this.openAndVerifyChatWidgetV2 = async () => {
12780
12784
  const chatInitializationApis = this.neetoPlaywrightUtilities.interceptMultipleResponses({
@@ -12901,9 +12905,7 @@ class HelpAndProfilePage {
12901
12905
  this.openAppSwitcherAndVerifyV2 = async () => {
12902
12906
  await test$2.step("Step 1: Verify hovering over app switcher opens the app switcher drawer", () => expect(async () => {
12903
12907
  await this.openHelpCenterV2();
12904
- await this.page
12905
- .getByTestId(COMMON_SELECTORS.appSwitcherButton)
12906
- .hover();
12908
+ await this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton).hover();
12907
12909
  await expect(this.page.getByTestId(COMMON_SELECTORS.appSwitcherWrapper)).toBeVisible();
12908
12910
  }).toPass({ timeout: 45000 }));
12909
12911
  };
@@ -13628,6 +13630,7 @@ const NEETO_EDITOR_SELECTORS = {
13628
13630
  videoWrapper: ".neeto-editor__video-wrapper",
13629
13631
  paragraphOption: "neeto-editor-fixed-menu-font-size-option-body2",
13630
13632
  attachmentPreview: "ne-attachments-wrapper",
13633
+ imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
13631
13634
  };
13632
13635
  const NEETO_TEXT_MODIFIER_SELECTORS = {
13633
13636
  strikeOption: "neeto-editor-fixed-menu-strike-option",
@@ -13776,10 +13779,8 @@ class EditorPage {
13776
13779
  timeout: 15000,
13777
13780
  });
13778
13781
  await this.imageUploadOption.click();
13779
- // TODO: Fix the selector after the issue is resolved: https://github.com/bigbinary/neeto-editor/issues/1048
13780
13782
  await this.page
13781
- .getByTestId(COMMON_SELECTORS.tabItem)
13782
- .getByText(DESCRIPTION_EDITOR_TEXTS.link)
13783
+ .getByTestId(NEETO_EDITOR_SELECTORS.imageUploadLinkButton)
13783
13784
  .click();
13784
13785
  await this.page
13785
13786
  .getByTestId(NEETO_EDITOR_SELECTORS.imageUploadLinkInput)