@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.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
@@ -7202,11 +7202,13 @@ const KEYBOARD_SHORTCUTS_SELECTORS = {
7202
7202
  hotKeyItem: "hotkey-item",
7203
7203
  };
7204
7204
 
7205
- /* eslint-disable playwright/require-top-level-describe */
7205
+ /* eslint-disable playwright/no-raw-locators */
7206
7206
  class HelpAndProfilePage {
7207
7207
  constructor({ page, neetoPlaywrightUtilities, chatApiBaseURL, kbDocsBaseURL, changelogBaseURL, }) {
7208
+ this.hoverOnBody = () => this.page.locator("body").hover();
7208
7209
  this.openHelpCenter = async () => {
7209
7210
  await expect(async () => {
7211
+ await this.hoverOnBody();
7210
7212
  const helpButton = this.page.getByTestId(CHAT_WIDGET_SELECTORS.helpButton);
7211
7213
  await helpButton.scrollIntoViewIfNeeded();
7212
7214
  await helpButton.hover();
@@ -7271,8 +7273,10 @@ class HelpAndProfilePage {
7271
7273
  });
7272
7274
  };
7273
7275
  this.openChangelogPane = async () => {
7274
- await this.page.getByTestId(HELP_CENTER_SELECTORS.whatsNewButton).click();
7275
- await expect(this.page.locator(CHANGELOG_WIDGET_SELECTORS.changelogWrapper)).toBeVisible();
7276
+ await expect(async () => {
7277
+ await this.page.getByTestId(HELP_CENTER_SELECTORS.whatsNewButton).click();
7278
+ await expect(this.page.locator(CHANGELOG_WIDGET_SELECTORS.changelogWrapper)).toBeVisible();
7279
+ }).toPass({ timeout: 15000 });
7276
7280
  };
7277
7281
  this.openAndVerifyChangelog = async () => {
7278
7282
  await test$1.step("Step 1: Open Help Center links", this.openHelpCenter);
@@ -7356,12 +7360,14 @@ class HelpAndProfilePage {
7356
7360
  this.openAppSwitcherAndVerify = async () => {
7357
7361
  const appSwitcher = this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton);
7358
7362
  await test$1.step("Step 1: Verify hovering over app switcher opens the app switcher drawer", () => expect(async () => {
7363
+ await this.hoverOnBody();
7359
7364
  await appSwitcher.scrollIntoViewIfNeeded();
7360
7365
  await appSwitcher.hover();
7361
7366
  await expect(this.page.getByTestId(COMMON_SELECTORS.appSwitcherWrapper)).toBeVisible();
7362
7367
  }).toPass({ timeout: 15000 }));
7363
7368
  };
7364
7369
  this.openProfilePopup = () => expect(async () => {
7370
+ await this.hoverOnBody();
7365
7371
  await this.profileSectionButton.scrollIntoViewIfNeeded();
7366
7372
  await this.profileSectionButton.hover();
7367
7373
  await expect(this.page.getByTestId(PROFILE_SECTION_SELECTORS.profilePopup)).toBeVisible();