@bigbinary/neeto-playwright-commons 1.22.19 → 1.22.20

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
@@ -192988,12 +192988,15 @@ class TeamMembers {
192988
192988
  await test$1.expect(this.page.locator(COMMON_SELECTORS.tableSpinner)).toBeHidden();
192989
192989
  };
192990
192990
  this.toggleMemberColumns = async ({ columns = [], bulkAction, }) => {
192991
- await this.page.getByTestId(COMMON_SELECTORS.columnsDropdownButton).click();
192991
+ await test$1.expect(async () => {
192992
+ await this.page
192993
+ .getByTestId(COMMON_SELECTORS.columnsDropdownButton)
192994
+ .click();
192995
+ await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.columnsSearchInput)).toBeVisible();
192996
+ }).toPass({ timeout: 15000 });
192992
192997
  if (neetoCist.isPresent(bulkAction)) {
192993
192998
  await this.page
192994
- .getByRole("button", {
192995
- name: bulkAction === "hide" ? "Hide All" : "Show All",
192996
- })
192999
+ .getByTestId(COMMON_SELECTORS.columnVisibilityBtn(bulkAction === "hide" ? "hide-all" : "reset"))
192997
193000
  .click();
192998
193001
  }
192999
193002
  else {
@@ -193001,9 +193004,13 @@ class TeamMembers {
193001
193004
  await this.page
193002
193005
  .getByTestId(COMMON_SELECTORS.columnsSearchInput)
193003
193006
  .fill(column);
193004
- await this.page
193005
- .getByTestId(MEMBER_SELECTORS.checkboxLabel(column))
193006
- .click();
193007
+ const columnCheckbox = this.page
193008
+ .getByTestId(COMMON_SELECTORS.nuiCheckboxContainer)
193009
+ .filter({ hasText: column })
193010
+ .getByTestId(MEMBER_SELECTORS.columnCheckBox);
193011
+ const isChecked = await columnCheckbox.isChecked();
193012
+ await columnCheckbox.click();
193013
+ await test$1.expect(columnCheckbox).toBeChecked({ checked: !isChecked });
193007
193014
  }
193008
193015
  }
193009
193016
  await this.page.getByTestId(COMMON_SELECTORS.columnsDropdownButton).click();