@bigbinary/neeto-playwright-commons 1.8.47 → 1.9.0

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.js CHANGED
@@ -13945,7 +13945,7 @@ const memberUtils = {
13945
13945
 
13946
13946
  const assertColumnHeaderVisibility = async ({ page, columnName, shouldBeVisible, }) => {
13947
13947
  const visibilityAssertion = shouldBeVisible ? "toBeVisible" : "toBeHidden";
13948
- await expect(page.getByRole("columnheader", { name: columnName }))[visibilityAssertion]();
13948
+ await expect(page.getByRole("columnheader", { name: columnName, exact: true }))[visibilityAssertion]();
13949
13949
  };
13950
13950
  const verifyTableColumnsExistence = async ({ page, columnNames, }) => {
13951
13951
  await Promise.all(columnNames.map(columnName => expect(page.getByRole("columnheader", { name: columnName, exact: true })).toBeVisible()));
@@ -13956,8 +13956,7 @@ const toggleColumnCheckboxAndVerifyVisibility = async ({ page, tableColumns, sho
13956
13956
  const checkbox = page
13957
13957
  .getByTestId(COMMON_SELECTORS.columnsDropdownContainer)
13958
13958
  .getByRole("listitem")
13959
- .filter({ hasText: columnName })
13960
- .getByRole("checkbox");
13959
+ .getByRole("checkbox", { name: columnName, exact: true });
13961
13960
  const isCheckBoxChecked = await checkbox.isChecked();
13962
13961
  if (isCheckBoxChecked !== shouldBeChecked) {
13963
13962
  await checkbox.click();