@bigbinary/neeto-playwright-commons 1.10.6 → 1.10.8
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 +12 -1
- package/index.cjs.js.map +1 -1
- package/index.d.ts +5 -0
- package/index.js +12 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2653,6 +2653,7 @@ declare const ROUTES: {
|
|
|
2653
2653
|
show: (id: string) => string;
|
|
2654
2654
|
};
|
|
2655
2655
|
attachment: string;
|
|
2656
|
+
dashboard: string;
|
|
2656
2657
|
};
|
|
2657
2658
|
/**
|
|
2658
2659
|
*
|
|
@@ -3584,6 +3585,8 @@ declare const MERGE_TAGS_SELECTORS: {
|
|
|
3584
3585
|
*
|
|
3585
3586
|
* closeChat: Selector for the close button in the chat widget.
|
|
3586
3587
|
*
|
|
3588
|
+
* chatQuestionHeader: Selector for the chat question header.
|
|
3589
|
+
*
|
|
3587
3590
|
*/
|
|
3588
3591
|
declare const CHAT_WIDGET_SELECTORS: {
|
|
3589
3592
|
iframe: string;
|
|
@@ -3593,6 +3596,7 @@ declare const CHAT_WIDGET_SELECTORS: {
|
|
|
3593
3596
|
preChatSubmitButton: string;
|
|
3594
3597
|
chatBubble: string;
|
|
3595
3598
|
closeChat: string;
|
|
3599
|
+
chatQuestionHeader: string;
|
|
3596
3600
|
};
|
|
3597
3601
|
/**
|
|
3598
3602
|
*
|
|
@@ -3962,6 +3966,7 @@ declare const NEETO_IMAGE_UPLOADER_SELECTORS: {
|
|
|
3962
3966
|
declare const CHAT_WIDGET_TEXTS: {
|
|
3963
3967
|
newConversation: string;
|
|
3964
3968
|
welcomeChatBubble: string;
|
|
3969
|
+
preChatQuestions: string;
|
|
3965
3970
|
};
|
|
3966
3971
|
/**
|
|
3967
3972
|
*
|
package/index.js
CHANGED
|
@@ -52,6 +52,7 @@ const ROUTES = {
|
|
|
52
52
|
show: (id) => `/team_members/teams/${id}`,
|
|
53
53
|
},
|
|
54
54
|
attachment: `/neeto_editor${BASE_URL}/direct_uploads/attach`,
|
|
55
|
+
dashboard: "/dashboard",
|
|
55
56
|
};
|
|
56
57
|
const API_ROUTES = {
|
|
57
58
|
teamMembers: {
|
|
@@ -12801,6 +12802,7 @@ class EmbedBase {
|
|
|
12801
12802
|
const CHAT_WIDGET_TEXTS = {
|
|
12802
12803
|
newConversation: "Ask a question",
|
|
12803
12804
|
welcomeChatBubble: "Hi! I'm here to assist you with any questions you may have. What can I do for you?",
|
|
12805
|
+
preChatQuestions: "Please fill in the form to start chatting.",
|
|
12804
12806
|
};
|
|
12805
12807
|
const MEMBER_TEXTS = {
|
|
12806
12808
|
agent: "Agent",
|
|
@@ -12883,6 +12885,7 @@ const CHAT_WIDGET_SELECTORS = {
|
|
|
12883
12885
|
preChatSubmitButton: "neeto-chat-widget-pre-chat-submit-btn",
|
|
12884
12886
|
chatBubble: "neeto-chat-widget-chat-message-bubble",
|
|
12885
12887
|
closeChat: "neeto-chat-widget-close-btn",
|
|
12888
|
+
chatQuestionHeader: "chat-question-header",
|
|
12886
12889
|
};
|
|
12887
12890
|
const CHANGELOG_WIDGET_SELECTORS = {
|
|
12888
12891
|
changelogWrapper: ".nc-widget__wrapper",
|
|
@@ -12941,6 +12944,14 @@ class HelpAndProfilePage {
|
|
|
12941
12944
|
await expect(newConversationButton).toBeVisible({ timeout: 35000 }); // Adding additional toBeVisible to take advantage of the auto-retrying web-first assertion
|
|
12942
12945
|
await newConversationButton.click();
|
|
12943
12946
|
await expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
|
|
12947
|
+
(await this.neetoChatFrame
|
|
12948
|
+
.getByTestId(CHAT_WIDGET_SELECTORS.chatQuestionHeader)
|
|
12949
|
+
.getByText(CHAT_WIDGET_TEXTS.preChatQuestions)
|
|
12950
|
+
.isVisible()) &&
|
|
12951
|
+
(await this.neetoChatFrame
|
|
12952
|
+
.getByTestId(CHAT_WIDGET_SELECTORS.preChatSubmitButton)
|
|
12953
|
+
.click());
|
|
12954
|
+
await expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
|
|
12944
12955
|
});
|
|
12945
12956
|
await test$2.step("Step 4: Verify conversation window", async () => {
|
|
12946
12957
|
await expect(this.neetoChatFrame.getByTestId(CHAT_WIDGET_SELECTORS.chatBubble)).toHaveText(CHAT_WIDGET_TEXTS.welcomeChatBubble);
|
|
@@ -13082,7 +13093,7 @@ class HelpAndProfilePage {
|
|
|
13082
13093
|
await this.page
|
|
13083
13094
|
.getByTestId(PROFILE_SECTION_SELECTORS.profileOrganizationSettingsButton)
|
|
13084
13095
|
.click();
|
|
13085
|
-
await expect(this.page).toHaveURL(new RegExp(ROUTES.
|
|
13096
|
+
await expect(this.page).toHaveURL(new RegExp(ROUTES.dashboard));
|
|
13086
13097
|
});
|
|
13087
13098
|
};
|
|
13088
13099
|
this.verifyLogoutV2 = async () => {
|