@bigbinary/neeto-playwright-commons 1.16.2 → 1.16.3

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
@@ -21560,25 +21560,9 @@ class HelpAndProfilePage {
21560
21560
  await this.page.getByTestId(CHAT_WIDGET_SELECTORS.closeChat).click();
21561
21561
  await test$1.expect(this.neetoChatWidget).toBeHidden({ timeout: 35000 });
21562
21562
  await this.openLiveChatAndVerify();
21563
- });
21564
- await test$1.test.step("Step 3: Start new conversation", async () => {
21565
- const newConversationButton = this.neetoChatFrame.getByRole("button", {
21563
+ await test$1.expect(this.neetoChatFrame.getByRole("button", {
21566
21564
  name: CHAT_WIDGET_TEXTS.newConversation,
21567
- });
21568
- await test$1.expect(newConversationButton).toBeVisible({ timeout: 35000 }); // Adding additional toBeVisible to take advantage of the auto-retrying web-first assertion
21569
- await newConversationButton.click();
21570
- await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
21571
- (await this.neetoChatFrame
21572
- .getByTestId(CHAT_WIDGET_SELECTORS.chatQuestionHeader)
21573
- .getByText(CHAT_WIDGET_TEXTS.preChatQuestions)
21574
- .isVisible()) &&
21575
- (await this.neetoChatFrame
21576
- .getByTestId(CHAT_WIDGET_SELECTORS.preChatSubmitButton)
21577
- .click());
21578
- await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
21579
- });
21580
- await test$1.test.step("Step 4: Verify conversation window", async () => {
21581
- await test$1.expect(this.neetoChatFrame.getByTestId(CHAT_WIDGET_SELECTORS.chatBubble)).toHaveText(CHAT_WIDGET_TEXTS.welcomeChatBubble);
21565
+ })).toBeVisible({ timeout: 35000 });
21582
21566
  });
21583
21567
  };
21584
21568
  this.openAndVerifyHelpArticlesV2 = async () => {