@bigbinary/neeto-playwright-commons 1.9.9 → 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.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
  };