@digital-ai/devops-page-object-release 0.0.0-snapshot-20251204060936 → 0.0.0-snapshot-20251204135514

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/dist/module.js CHANGED
@@ -5892,6 +5892,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5892
5892
  for (const user of users){
5893
5893
  await this.filterUser(user.name);
5894
5894
  const type = user.external ? "External" : "Internal";
5895
+ const accountLockedType = user.accountLocked ? "Locked" : "";
5895
5896
  (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5896
5897
  hasText: user.name
5897
5898
  }).count()).toBeGreaterThan(0);
@@ -5900,6 +5901,11 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5900
5901
  }).locator(`td`).filter({
5901
5902
  hasText: type
5902
5903
  }).count()).toBeGreaterThan(0);
5904
+ if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5905
+ hasText: user.name
5906
+ }).locator(`td`).filter({
5907
+ hasText: accountLockedType
5908
+ }).count()).toBeGreaterThan(0);
5903
5909
  if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5904
5910
  hasText: user.name
5905
5911
  }).locator(`td`).filter({
@@ -5963,25 +5969,6 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5963
5969
  })).toHaveCount(0);
5964
5970
  return this;
5965
5971
  }
5966
- async expectUserUnlockedToaster(user) {
5967
- await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
5968
- timeout: 10000
5969
- });
5970
- }
5971
- async unlockUser(user) {
5972
- await this.page.getByTestId(`unlock-btn-${user}`).click();
5973
- }
5974
- async expectWarningVisibility(warningRegex, shouldBeVisible) {
5975
- const locator = this.page.getByText(warningRegex);
5976
- if (shouldBeVisible) await (0, $hOLA6$expect)(locator).toBeVisible();
5977
- else await (0, $hOLA6$expect)(locator).toHaveCount(0);
5978
- return this;
5979
- }
5980
- async editUserClickCancelButton() {
5981
- await this.page.getByRole("button", {
5982
- name: "Cancel"
5983
- }).click();
5984
- }
5985
5972
  }
5986
5973
 
5987
5974