@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.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ declare class HelpAndProfilePage {
|
|
|
109
109
|
t: TFunction;
|
|
110
110
|
profileSectionButton: Locator;
|
|
111
111
|
constructor({ page, neetoPlaywrightUtilities, chatApiBaseURL, kbDocsBaseURL, changelogBaseURL, }: HelpAndProfilePageInitializerProps);
|
|
112
|
+
private hoverOnBody;
|
|
112
113
|
openHelpCenter: () => Promise<void>;
|
|
113
114
|
private openLiveChatAndVerify;
|
|
114
115
|
openAndVerifyChatWidget: () => Promise<void>;
|
package/index.js
CHANGED
|
@@ -5809,6 +5809,7 @@ function fastqueue (context, worker, concurrency) {
|
|
|
5809
5809
|
current.release = release;
|
|
5810
5810
|
current.value = value;
|
|
5811
5811
|
current.callback = done || noop;
|
|
5812
|
+
current.errorHandler = errorHandler;
|
|
5812
5813
|
|
|
5813
5814
|
if (_running === self.concurrency || self.paused) {
|
|
5814
5815
|
if (queueHead) {
|
|
@@ -7202,11 +7203,13 @@ const KEYBOARD_SHORTCUTS_SELECTORS = {
|
|
|
7202
7203
|
hotKeyItem: "hotkey-item",
|
|
7203
7204
|
};
|
|
7204
7205
|
|
|
7205
|
-
/* eslint-disable playwright/
|
|
7206
|
+
/* eslint-disable playwright/no-raw-locators */
|
|
7206
7207
|
class HelpAndProfilePage {
|
|
7207
7208
|
constructor({ page, neetoPlaywrightUtilities, chatApiBaseURL, kbDocsBaseURL, changelogBaseURL, }) {
|
|
7209
|
+
this.hoverOnBody = () => this.page.locator("body").hover();
|
|
7208
7210
|
this.openHelpCenter = async () => {
|
|
7209
7211
|
await expect(async () => {
|
|
7212
|
+
await this.hoverOnBody();
|
|
7210
7213
|
const helpButton = this.page.getByTestId(CHAT_WIDGET_SELECTORS.helpButton);
|
|
7211
7214
|
await helpButton.scrollIntoViewIfNeeded();
|
|
7212
7215
|
await helpButton.hover();
|
|
@@ -7271,8 +7274,10 @@ class HelpAndProfilePage {
|
|
|
7271
7274
|
});
|
|
7272
7275
|
};
|
|
7273
7276
|
this.openChangelogPane = async () => {
|
|
7274
|
-
await
|
|
7275
|
-
|
|
7277
|
+
await expect(async () => {
|
|
7278
|
+
await this.page.getByTestId(HELP_CENTER_SELECTORS.whatsNewButton).click();
|
|
7279
|
+
await expect(this.page.locator(CHANGELOG_WIDGET_SELECTORS.changelogWrapper)).toBeVisible();
|
|
7280
|
+
}).toPass({ timeout: 15000 });
|
|
7276
7281
|
};
|
|
7277
7282
|
this.openAndVerifyChangelog = async () => {
|
|
7278
7283
|
await test$1.step("Step 1: Open Help Center links", this.openHelpCenter);
|
|
@@ -7356,12 +7361,14 @@ class HelpAndProfilePage {
|
|
|
7356
7361
|
this.openAppSwitcherAndVerify = async () => {
|
|
7357
7362
|
const appSwitcher = this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton);
|
|
7358
7363
|
await test$1.step("Step 1: Verify hovering over app switcher opens the app switcher drawer", () => expect(async () => {
|
|
7364
|
+
await this.hoverOnBody();
|
|
7359
7365
|
await appSwitcher.scrollIntoViewIfNeeded();
|
|
7360
7366
|
await appSwitcher.hover();
|
|
7361
7367
|
await expect(this.page.getByTestId(COMMON_SELECTORS.appSwitcherWrapper)).toBeVisible();
|
|
7362
7368
|
}).toPass({ timeout: 15000 }));
|
|
7363
7369
|
};
|
|
7364
7370
|
this.openProfilePopup = () => expect(async () => {
|
|
7371
|
+
await this.hoverOnBody();
|
|
7365
7372
|
await this.profileSectionButton.scrollIntoViewIfNeeded();
|
|
7366
7373
|
await this.profileSectionButton.hover();
|
|
7367
7374
|
await expect(this.page.getByTestId(PROFILE_SECTION_SELECTORS.profilePopup)).toBeVisible();
|