@bigbinary/neeto-playwright-commons 1.6.6 → 1.6.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 +9 -3
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +9 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -7237,11 +7237,13 @@ const KEYBOARD_SHORTCUTS_SELECTORS = {
|
|
|
7237
7237
|
hotKeyItem: "hotkey-item",
|
|
7238
7238
|
};
|
|
7239
7239
|
|
|
7240
|
-
/* eslint-disable playwright/
|
|
7240
|
+
/* eslint-disable playwright/no-raw-locators */
|
|
7241
7241
|
class HelpAndProfilePage {
|
|
7242
7242
|
constructor({ page, neetoPlaywrightUtilities, chatApiBaseURL, kbDocsBaseURL, changelogBaseURL, }) {
|
|
7243
|
+
this.hoverOnBody = () => this.page.locator("body").hover();
|
|
7243
7244
|
this.openHelpCenter = async () => {
|
|
7244
7245
|
await test.expect(async () => {
|
|
7246
|
+
await this.hoverOnBody();
|
|
7245
7247
|
const helpButton = this.page.getByTestId(CHAT_WIDGET_SELECTORS.helpButton);
|
|
7246
7248
|
await helpButton.scrollIntoViewIfNeeded();
|
|
7247
7249
|
await helpButton.hover();
|
|
@@ -7306,8 +7308,10 @@ class HelpAndProfilePage {
|
|
|
7306
7308
|
});
|
|
7307
7309
|
};
|
|
7308
7310
|
this.openChangelogPane = async () => {
|
|
7309
|
-
await
|
|
7310
|
-
|
|
7311
|
+
await test.expect(async () => {
|
|
7312
|
+
await this.page.getByTestId(HELP_CENTER_SELECTORS.whatsNewButton).click();
|
|
7313
|
+
await test.expect(this.page.locator(CHANGELOG_WIDGET_SELECTORS.changelogWrapper)).toBeVisible();
|
|
7314
|
+
}).toPass({ timeout: 15000 });
|
|
7311
7315
|
};
|
|
7312
7316
|
this.openAndVerifyChangelog = async () => {
|
|
7313
7317
|
await test.test.step("Step 1: Open Help Center links", this.openHelpCenter);
|
|
@@ -7391,12 +7395,14 @@ class HelpAndProfilePage {
|
|
|
7391
7395
|
this.openAppSwitcherAndVerify = async () => {
|
|
7392
7396
|
const appSwitcher = this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton);
|
|
7393
7397
|
await test.test.step("Step 1: Verify hovering over app switcher opens the app switcher drawer", () => test.expect(async () => {
|
|
7398
|
+
await this.hoverOnBody();
|
|
7394
7399
|
await appSwitcher.scrollIntoViewIfNeeded();
|
|
7395
7400
|
await appSwitcher.hover();
|
|
7396
7401
|
await test.expect(this.page.getByTestId(COMMON_SELECTORS.appSwitcherWrapper)).toBeVisible();
|
|
7397
7402
|
}).toPass({ timeout: 15000 }));
|
|
7398
7403
|
};
|
|
7399
7404
|
this.openProfilePopup = () => test.expect(async () => {
|
|
7405
|
+
await this.hoverOnBody();
|
|
7400
7406
|
await this.profileSectionButton.scrollIntoViewIfNeeded();
|
|
7401
7407
|
await this.profileSectionButton.hover();
|
|
7402
7408
|
await test.expect(this.page.getByTestId(PROFILE_SECTION_SELECTORS.profilePopup)).toBeVisible();
|