@bigbinary/neeto-playwright-commons 1.8.47 → 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
@@ -13991,7 +13991,7 @@ const memberUtils = {
13991
13991
 
13992
13992
  const assertColumnHeaderVisibility = async ({ page, columnName, shouldBeVisible, }) => {
13993
13993
  const visibilityAssertion = shouldBeVisible ? "toBeVisible" : "toBeHidden";
13994
- await test$1.expect(page.getByRole("columnheader", { name: columnName }))[visibilityAssertion]();
13994
+ await test$1.expect(page.getByRole("columnheader", { name: columnName, exact: true }))[visibilityAssertion]();
13995
13995
  };
13996
13996
  const verifyTableColumnsExistence = async ({ page, columnNames, }) => {
13997
13997
  await Promise.all(columnNames.map(columnName => test$1.expect(page.getByRole("columnheader", { name: columnName, exact: true })).toBeVisible()));
@@ -14002,8 +14002,7 @@ const toggleColumnCheckboxAndVerifyVisibility = async ({ page, tableColumns, sho
14002
14002
  const checkbox = page
14003
14003
  .getByTestId(COMMON_SELECTORS.columnsDropdownContainer)
14004
14004
  .getByRole("listitem")
14005
- .filter({ hasText: columnName })
14006
- .getByRole("checkbox");
14005
+ .getByRole("checkbox", { name: columnName, exact: true });
14007
14006
  const isCheckBoxChecked = await checkbox.isChecked();
14008
14007
  if (isCheckBoxChecked !== shouldBeChecked) {
14009
14008
  await checkbox.click();