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