@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 +2 -18
- package/index.cjs.js.map +1 -1
- package/index.js +2 -18
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -21540,25 +21540,9 @@ class HelpAndProfilePage {
|
|
|
21540
21540
|
await this.page.getByTestId(CHAT_WIDGET_SELECTORS.closeChat).click();
|
|
21541
21541
|
await expect(this.neetoChatWidget).toBeHidden({ timeout: 35000 });
|
|
21542
21542
|
await this.openLiveChatAndVerify();
|
|
21543
|
-
|
|
21544
|
-
await test$2.step("Step 3: Start new conversation", async () => {
|
|
21545
|
-
const newConversationButton = this.neetoChatFrame.getByRole("button", {
|
|
21543
|
+
await expect(this.neetoChatFrame.getByRole("button", {
|
|
21546
21544
|
name: CHAT_WIDGET_TEXTS.newConversation,
|
|
21547
|
-
});
|
|
21548
|
-
await expect(newConversationButton).toBeVisible({ timeout: 35000 }); // Adding additional toBeVisible to take advantage of the auto-retrying web-first assertion
|
|
21549
|
-
await newConversationButton.click();
|
|
21550
|
-
await expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
|
|
21551
|
-
(await this.neetoChatFrame
|
|
21552
|
-
.getByTestId(CHAT_WIDGET_SELECTORS.chatQuestionHeader)
|
|
21553
|
-
.getByText(CHAT_WIDGET_TEXTS.preChatQuestions)
|
|
21554
|
-
.isVisible()) &&
|
|
21555
|
-
(await this.neetoChatFrame
|
|
21556
|
-
.getByTestId(CHAT_WIDGET_SELECTORS.preChatSubmitButton)
|
|
21557
|
-
.click());
|
|
21558
|
-
await expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
|
|
21559
|
-
});
|
|
21560
|
-
await test$2.step("Step 4: Verify conversation window", async () => {
|
|
21561
|
-
await expect(this.neetoChatFrame.getByTestId(CHAT_WIDGET_SELECTORS.chatBubble)).toHaveText(CHAT_WIDGET_TEXTS.welcomeChatBubble);
|
|
21545
|
+
})).toBeVisible({ timeout: 35000 });
|
|
21562
21546
|
});
|
|
21563
21547
|
};
|
|
21564
21548
|
this.openAndVerifyHelpArticlesV2 = async () => {
|