@digital-ai/devops-page-object-release 0.0.0-snapshot-20251210075018 → 0.0.0-snapshot-20251212071754

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
@@ -2937,6 +2937,27 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
2937
2937
  async expectReleaseTaggedWith(tagName) {
2938
2938
  await (0, $hOLA6$expect)(this.page.locator("#tags")).toContainText(tagName);
2939
2939
  }
2940
+ async expectReleaseNotTaggedWith(tagName) {
2941
+ await (0, $hOLA6$expect)(this.page.locator(`#tags`, {
2942
+ hasText: tagName
2943
+ })).toHaveCount(0);
2944
+ }
2945
+ async addTag(tagName) {
2946
+ const tagInput = this.page.locator('input[placeholder="Add a tag..."]');
2947
+ await tagInput.fill(tagName);
2948
+ await tagInput.press("Enter");
2949
+ await (0, $hOLA6$expect)(this.page.locator(`#tags`, {
2950
+ hasText: tagName
2951
+ })).toBeVisible();
2952
+ }
2953
+ async removeTag(tagName) {
2954
+ const tag = this.page.locator(`#tags`, {
2955
+ hasText: tagName
2956
+ });
2957
+ const removeIcon = tag.locator(".tag-close");
2958
+ await removeIcon.click();
2959
+ await (0, $hOLA6$expect)(tag).toHaveCount(0);
2960
+ }
2940
2961
  async expectTemplateTitleToBe(templateTitle) {
2941
2962
  await (0, $hOLA6$expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
2942
2963
  }
@@ -5908,8 +5929,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5908
5929
  }).getByRole("checkbox")).toBeChecked();
5909
5930
  }
5910
5931
  async deleteUser(username) {
5911
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
5912
- await this.page.locator(".icon-delete").click();
5932
+ await this.page.getByTestId(`delete-btn-${username}`).click();
5913
5933
  await this.modal.delete();
5914
5934
  }
5915
5935
  async openRoles() {
@@ -5938,7 +5958,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5938
5958
  }).count()).toBeGreaterThan(0);
5939
5959
  if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5940
5960
  hasText: user.name
5941
- }).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
5961
+ }).locator('[data-testid="user-account-lock"]')).toBeVisible();
5942
5962
  if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5943
5963
  hasText: user.name
5944
5964
  }).locator(`td`).filter({
@@ -5954,7 +5974,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5954
5974
  }).locator(`td`).filter({
5955
5975
  hasText: user.externalId
5956
5976
  }).count()).toBeGreaterThan(0);
5957
- (0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
5977
+ (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5978
+ hasText: user.name
5979
+ }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
5958
5980
  }
5959
5981
  }
5960
5982
  async expectNoUser(username) {
@@ -5963,8 +5985,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5963
5985
  }
5964
5986
  async updateUser(username) {
5965
5987
  await this.filterUser(username);
5966
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
5967
- await this.page.locator(".icon-edit").click();
5988
+ await this.page.getByRole("row", {
5989
+ name: "" + username + ""
5990
+ }).locator(".icon-edit").click();
5968
5991
  return this.modal;
5969
5992
  }
5970
5993
  async sortByColumn(columnName, columnIndex) {
@@ -6000,7 +6023,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
6000
6023
  return this;
6001
6024
  }
6002
6025
  async expectUserUnlockedToaster(user) {
6003
- await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
6026
+ await (0, $hOLA6$expect)(this.page.getByText(`User ${user} was unlocked and can now login in again`)).toBeVisible({
6004
6027
  timeout: 10000
6005
6028
  });
6006
6029
  }