@bigbinary/neeto-playwright-commons 4.11.10 → 4.11.12

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.
Files changed (3) hide show
  1. package/index.d.ts +4 -0
  2. package/index.js +6 -2
  3. package/package.json +1 -1
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
@@ -6737,6 +6739,8 @@ declare const USER_AGENTS: {
6737
6739
  iPhone: string;
6738
6740
  iPad: string;
6739
6741
  android: string;
6742
+ firefox: string;
6743
+ safari: string;
6740
6744
  };
6741
6745
  /**
6742
6746
  *
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 () => {
@@ -8545,6 +8547,8 @@ const USER_AGENTS = {
8545
8547
  iPhone: "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/154.0.8037.55 Mobile/15E148 Safari/604.1",
8546
8548
  iPad: "Mozilla/5.0 (iPad; CPU OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/154.0.8037.55 Mobile/15E148 Safari/604.1",
8547
8549
  android: "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Mobile Safari/537.36",
8550
+ firefox: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0",
8551
+ safari: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15",
8548
8552
  };
8549
8553
 
8550
8554
  const networkConditions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.11.10",
3
+ "version": "4.11.12",
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",