@bigbinary/neeto-playwright-commons 4.12.4 → 4.12.6

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 (2) hide show
  1. package/index.js +7 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5437,21 +5437,21 @@ class HelpAndProfilePageV2 extends HelpAndProfilePage {
5437
5437
  await this.page
5438
5438
  .getByTestId(HELP_CENTER_SELECTORS.keyboardShortcutButton)
5439
5439
  .click();
5440
- await expect(keyboardShortcutsPane).not.toHaveCSS("width", "1px");
5440
+ await expect(keyboardShortcutsPane).not.toHaveCSS("width", "0px");
5441
5441
  await this.page
5442
5442
  .getByTestId(KEYBOARD_SHORTCUTS_SELECTORS.closePaneButton)
5443
5443
  .click();
5444
- await expect(keyboardShortcutsPane).toHaveCSS("width", "1px");
5444
+ await expect(keyboardShortcutsPane).toHaveCSS("width", "0px");
5445
5445
  });
5446
5446
  await test.step("3: Open and close keyboard shortcuts through shortcut", async () => {
5447
5447
  await this.page.keyboard.press(openKeyboardShortcut);
5448
- await expect(keyboardShortcutsPane).not.toHaveCSS("width", "1px");
5448
+ await expect(keyboardShortcutsPane).not.toHaveCSS("width", "0px");
5449
5449
  await this.page.keyboard.press("Escape");
5450
- await expect(keyboardShortcutsPane).toHaveCSS("width", "1px");
5450
+ await expect(keyboardShortcutsPane).toHaveCSS("width", "0px");
5451
5451
  });
5452
5452
  await test.step("4: Verify all displayed keyboard shortcuts", async () => {
5453
5453
  await this.page.keyboard.press(openKeyboardShortcut);
5454
- await expect(keyboardShortcutsPane).not.toHaveCSS("width", "1px");
5454
+ await expect(keyboardShortcutsPane).not.toHaveCSS("width", "0px");
5455
5455
  await Promise.all([
5456
5456
  expect(keyItem.getByTestId(COMMON_SELECTORS.hotkeyDescription)).toHaveText(shortcuts.map(shortcut => shortcut.description)),
5457
5457
  expect(keyItem.locator("div")).toHaveText(formattedSequences),
@@ -13014,6 +13014,7 @@ const vitePort = process.env.VITE_PORT;
13014
13014
  const isPlaywrightRun = process.env.PLAYWRIGHT_RUN === "true";
13015
13015
  const isIsolatedRetry = process.env.PW_ISOLATED_RETRY === "true";
13016
13016
  const isTracingEnabled = process.env.PW_ENABLE_TRACING === "true";
13017
+ const workersOverride = parseInt(process.env.PLAYWRIGHT_WORKERS ?? "", 10);
13017
13018
  const PROJECT_NAMES = {
13018
13019
  setup: "setup",
13019
13020
  chromium: "chromium",
@@ -13078,7 +13079,7 @@ const definePlaywrightConfig = (overrides) => {
13078
13079
  forbidOnly: IS_CI,
13079
13080
  retries: IS_CI ? 1 : 0,
13080
13081
  timeout: 5 * 60 * 1000,
13081
- workers: IS_CI ? 6 : 5,
13082
+ workers: workersOverride > 0 ? workersOverride : IS_CI ? 6 : 5,
13082
13083
  reporter: IS_CI ? reporter : [["line"]],
13083
13084
  retryStrategy: isIsolatedRetry ? "isolated" : "immediate",
13084
13085
  ...(specPatterns && { testMatch: specPatterns }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.12.4",
3
+ "version": "4.12.6",
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",