@bigbinary/neeto-playwright-commons 1.8.46 → 1.8.48

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 CHANGED
@@ -250,6 +250,7 @@ const COMMON_SELECTORS = {
250
250
  header: "neeto-molecules-header",
251
251
  sidebarSubLink: (label) => `${hyphenize(label)}-sub-link`,
252
252
  sidebarGoBackButton: (label) => `${hyphenize(label)}-go-back-button`,
253
+ selectSingleValue: "select-single-value",
253
254
  };
254
255
 
255
256
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -12424,7 +12425,7 @@ class EmbedBase {
12424
12425
  await test$1.expect(popUpButton).toBeVisible();
12425
12426
  await popUpButton.click();
12426
12427
  await test$1.expect(this.embedTestPage.locator(EMBED_SELECTORS.loader(this.appName))).toBeHidden({
12427
- timeout: 10000,
12428
+ timeout: 40000,
12428
12429
  });
12429
12430
  };
12430
12431
  this.copyEmbedScript = async ({ embedLabel }) => {
@@ -13990,7 +13991,7 @@ const memberUtils = {
13990
13991
 
13991
13992
  const assertColumnHeaderVisibility = async ({ page, columnName, shouldBeVisible, }) => {
13992
13993
  const visibilityAssertion = shouldBeVisible ? "toBeVisible" : "toBeHidden";
13993
- await test$1.expect(page.getByRole("columnheader", { name: columnName }))[visibilityAssertion]();
13994
+ await test$1.expect(page.getByRole("columnheader", { name: columnName, exact: true }))[visibilityAssertion]();
13994
13995
  };
13995
13996
  const verifyTableColumnsExistence = async ({ page, columnNames, }) => {
13996
13997
  await Promise.all(columnNames.map(columnName => test$1.expect(page.getByRole("columnheader", { name: columnName, exact: true })).toBeVisible()));
@@ -14001,8 +14002,7 @@ const toggleColumnCheckboxAndVerifyVisibility = async ({ page, tableColumns, sho
14001
14002
  const checkbox = page
14002
14003
  .getByTestId(COMMON_SELECTORS.columnsDropdownContainer)
14003
14004
  .getByRole("listitem")
14004
- .filter({ hasText: columnName })
14005
- .getByRole("checkbox");
14005
+ .getByRole("checkbox", { name: columnName, exact: true });
14006
14006
  const isCheckBoxChecked = await checkbox.isChecked();
14007
14007
  if (isCheckBoxChecked !== shouldBeChecked) {
14008
14008
  await checkbox.click();
@@ -146910,6 +146910,14 @@ const executeWithThrottledResources = async ({ code: emulatedCode, kind = "both"
146910
146910
  await cpuThrottlingUsingCDP({ cdpSession, rate: 1 });
146911
146911
  };
146912
146912
 
146913
+ const openFilterPane = async (page) => {
146914
+ await page.getByTestId(NEETO_FILTERS_SELECTORS.filterButton).click();
146915
+ await test$1.expect(page.getByTestId(COMMON_SELECTORS.paneHeader)).toHaveText(playwrightI18nextFixture.getI18nInstance().t("neetoFilters.common.filters"));
146916
+ };
146917
+ const filterUtils = {
146918
+ openFilterPane,
146919
+ };
146920
+
146913
146921
  var main$2 = {exports: {}};
146914
146922
 
146915
146923
  var name = "dotenv";
@@ -147569,6 +147577,7 @@ exports.decodeQRCodeFromFile = decodeQRCodeFromFile;
147569
147577
  exports.definePlaywrightConfig = definePlaywrightConfig;
147570
147578
  exports.executeWithThrottledResources = executeWithThrottledResources;
147571
147579
  exports.extractSubdomainFromError = extractSubdomainFromError;
147580
+ exports.filterUtils = filterUtils;
147572
147581
  exports.generateRandomBypassEmail = generateRandomBypassEmail;
147573
147582
  exports.generateStagingData = generateStagingData;
147574
147583
  exports.getByDataQA = getByDataQA;