@bigbinary/neeto-playwright-commons 1.10.6 → 1.10.7

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 CHANGED
@@ -12848,6 +12848,7 @@ class EmbedBase {
12848
12848
  const CHAT_WIDGET_TEXTS = {
12849
12849
  newConversation: "Ask a question",
12850
12850
  welcomeChatBubble: "Hi! I'm here to assist you with any questions you may have. What can I do for you?",
12851
+ preChatQuestions: "Please fill in the form to start chatting.",
12851
12852
  };
12852
12853
  const MEMBER_TEXTS = {
12853
12854
  agent: "Agent",
@@ -12930,6 +12931,7 @@ const CHAT_WIDGET_SELECTORS = {
12930
12931
  preChatSubmitButton: "neeto-chat-widget-pre-chat-submit-btn",
12931
12932
  chatBubble: "neeto-chat-widget-chat-message-bubble",
12932
12933
  closeChat: "neeto-chat-widget-close-btn",
12934
+ chatQuestionHeader: "chat-question-header",
12933
12935
  };
12934
12936
  const CHANGELOG_WIDGET_SELECTORS = {
12935
12937
  changelogWrapper: ".nc-widget__wrapper",
@@ -12988,6 +12990,14 @@ class HelpAndProfilePage {
12988
12990
  await test$1.expect(newConversationButton).toBeVisible({ timeout: 35000 }); // Adding additional toBeVisible to take advantage of the auto-retrying web-first assertion
12989
12991
  await newConversationButton.click();
12990
12992
  await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
12993
+ (await this.neetoChatFrame
12994
+ .getByTestId(CHAT_WIDGET_SELECTORS.chatQuestionHeader)
12995
+ .getByText(CHAT_WIDGET_TEXTS.preChatQuestions)
12996
+ .isVisible()) &&
12997
+ (await this.neetoChatFrame
12998
+ .getByTestId(CHAT_WIDGET_SELECTORS.preChatSubmitButton)
12999
+ .click());
13000
+ await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
12991
13001
  });
12992
13002
  await test$1.test.step("Step 4: Verify conversation window", async () => {
12993
13003
  await test$1.expect(this.neetoChatFrame.getByTestId(CHAT_WIDGET_SELECTORS.chatBubble)).toHaveText(CHAT_WIDGET_TEXTS.welcomeChatBubble);