@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.cjs.js +9 -7
- package/index.cjs.js.map +1 -1
- package/index.js +9 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -12813,14 +12813,18 @@ class HelpAndProfilePage {
|
|
|
12813
12813
|
await test$1.expect(this.page.getByTestId(HELP_CENTER_SELECTORS.chatButton)).toBeVisible();
|
|
12814
12814
|
}).toPass({ timeout: 15000 });
|
|
12815
12815
|
};
|
|
12816
|
-
this.openLiveChatAndVerify = async () => {
|
|
12816
|
+
this.openLiveChatAndVerify = async (widgetVisibilityTimeout = 10000) => {
|
|
12817
12817
|
await test$1.expect(async () => {
|
|
12818
12818
|
await this.openHelpCenterV2();
|
|
12819
12819
|
await this.page.getByTestId(HELP_CENTER_SELECTORS.chatButton).click();
|
|
12820
|
-
await test$1.expect(this.neetoChatWidget).toBeVisible(
|
|
12820
|
+
await test$1.expect(this.neetoChatWidget).toBeVisible({
|
|
12821
|
+
timeout: widgetVisibilityTimeout,
|
|
12822
|
+
});
|
|
12821
12823
|
await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 20 * 1000 });
|
|
12822
|
-
await test$1.expect(this.neetoChatWidget).toBeVisible(
|
|
12823
|
-
|
|
12824
|
+
await test$1.expect(this.neetoChatWidget).toBeVisible({
|
|
12825
|
+
timeout: widgetVisibilityTimeout,
|
|
12826
|
+
});
|
|
12827
|
+
}).toPass({ timeout: 35000 + widgetVisibilityTimeout * 2 });
|
|
12824
12828
|
};
|
|
12825
12829
|
this.openAndVerifyChatWidgetV2 = async () => {
|
|
12826
12830
|
const chatInitializationApis = this.neetoPlaywrightUtilities.interceptMultipleResponses({
|
|
@@ -12947,9 +12951,7 @@ class HelpAndProfilePage {
|
|
|
12947
12951
|
this.openAppSwitcherAndVerifyV2 = async () => {
|
|
12948
12952
|
await test$1.test.step("Step 1: Verify hovering over app switcher opens the app switcher drawer", () => test$1.expect(async () => {
|
|
12949
12953
|
await this.openHelpCenterV2();
|
|
12950
|
-
await this.page
|
|
12951
|
-
.getByTestId(COMMON_SELECTORS.appSwitcherButton)
|
|
12952
|
-
.hover();
|
|
12954
|
+
await this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton).hover();
|
|
12953
12955
|
await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.appSwitcherWrapper)).toBeVisible();
|
|
12954
12956
|
}).toPass({ timeout: 45000 }));
|
|
12955
12957
|
};
|