@bigbinary/neeto-playwright-commons 4.11.10-beta1 → 4.11.11

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
@@ -2853,6 +2853,7 @@ declare class HelpAndProfilePage {
2853
2853
  description: string;
2854
2854
  sequence: string;
2855
2855
  }[], osPlatform?: "mac" | "windows") => Promise<void>;
2856
+ openAppSwitcher: () => Promise<void>;
2856
2857
  /**
2857
2858
  *
2858
2859
  * Opens and verifies the app switcher in Help Center.
@@ -3064,6 +3065,7 @@ declare class HelpAndProfilePage {
3064
3065
  verifyThemeSwitcher: (expectedScreenshot: string) => Promise<void>;
3065
3066
  }
3066
3067
  declare class HelpAndProfilePageV2 extends HelpAndProfilePage {
3068
+ openAppSwitcher: () => Promise<void>;
3067
3069
  /**
3068
3070
  *
3069
3071
  * Opens the Help Center and expects the chat button within it to be visible. The
package/index.js CHANGED
@@ -5111,13 +5111,14 @@ class HelpAndProfilePage {
5111
5111
  ]);
5112
5112
  });
5113
5113
  };
5114
+ openAppSwitcher = () => this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton).hover();
5114
5115
  openAppSwitcherAndVerify = async () => {
5115
5116
  const productName = "Cal";
5116
5117
  const searchQueryPartial = productName.slice(0, 1).toLowerCase();
5117
5118
  const searchQueryFull = productName.toLowerCase();
5118
- await test.step("1: Verify hovering over app switcher opens the app switcher drawer", () => expect(async () => {
5119
+ await test.step("1: Open the app switcher drawer", () => expect(async () => {
5119
5120
  await this.openHelpCenter();
5120
- await this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton).hover();
5121
+ await this.openAppSwitcher();
5121
5122
  await expect(this.page.getByTestId(COMMON_SELECTORS.appSwitcherWrapper)).toBeVisible();
5122
5123
  await this.neetoPlaywrightUtilities.waitForPageLoad();
5123
5124
  }).toPass({ timeout: 60_000 }));
@@ -5423,6 +5424,7 @@ class HelpAndProfilePage {
5423
5424
  };
5424
5425
  }
5425
5426
  class HelpAndProfilePageV2 extends HelpAndProfilePage {
5427
+ openAppSwitcher = () => this.page.getByTestId(COMMON_SELECTORS.appSwitcherButton).click();
5426
5428
  openHelpCenter = async () => {
5427
5429
  const floatingActionMenuBtn = this.page.getByTestId(COMMON_SELECTORS.floatingActionMenuButton);
5428
5430
  await expect(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.11.10-beta1",
3
+ "version": "4.11.11",
4
4
  "description": "A package encapsulating common playwright code across neeto projects.",
5
5
  "repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
6
6
  "license": "apache-2.0",
@@ -106,4 +106,4 @@
106
106
  "puppeteer-extra-plugin-stealth": "2.11.2"
107
107
  },
108
108
  "packageManager": "yarn@4.18.1"
109
- }
109
+ }
File without changes