@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.cjs.js +11 -10
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +11 -10
- 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
|
};
|
|
@@ -13674,6 +13676,7 @@ const NEETO_EDITOR_SELECTORS = {
|
|
|
13674
13676
|
videoWrapper: ".neeto-editor__video-wrapper",
|
|
13675
13677
|
paragraphOption: "neeto-editor-fixed-menu-font-size-option-body2",
|
|
13676
13678
|
attachmentPreview: "ne-attachments-wrapper",
|
|
13679
|
+
imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
|
|
13677
13680
|
};
|
|
13678
13681
|
const NEETO_TEXT_MODIFIER_SELECTORS = {
|
|
13679
13682
|
strikeOption: "neeto-editor-fixed-menu-strike-option",
|
|
@@ -13822,10 +13825,8 @@ class EditorPage {
|
|
|
13822
13825
|
timeout: 15000,
|
|
13823
13826
|
});
|
|
13824
13827
|
await this.imageUploadOption.click();
|
|
13825
|
-
// TODO: Fix the selector after the issue is resolved: https://github.com/bigbinary/neeto-editor/issues/1048
|
|
13826
13828
|
await this.page
|
|
13827
|
-
.getByTestId(
|
|
13828
|
-
.getByText(DESCRIPTION_EDITOR_TEXTS.link)
|
|
13829
|
+
.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadLinkButton)
|
|
13829
13830
|
.click();
|
|
13830
13831
|
await this.page
|
|
13831
13832
|
.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadLinkInput)
|