@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/CHANGELOG.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251210075018
3
+ ## 0.0.0-snapshot-20251212071754
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - ec1a601: S-126029: Added new column details for testing account lock
7
+ - 294fb2f: S-126029: Added new column details for testing account lock
8
+ - 686fc2e: S-126903: Migrated release-tags-scenario to playwright
8
9
 
9
10
  ## 0.0.96
10
11
 
package/dist/main.js CHANGED
@@ -3873,6 +3873,27 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
3873
3873
  async expectReleaseTaggedWith(tagName) {
3874
3874
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tags")).toContainText(tagName);
3875
3875
  }
3876
+ async expectReleaseNotTaggedWith(tagName) {
3877
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags`, {
3878
+ hasText: tagName
3879
+ })).toHaveCount(0);
3880
+ }
3881
+ async addTag(tagName) {
3882
+ const tagInput = this.page.locator('input[placeholder="Add a tag..."]');
3883
+ await tagInput.fill(tagName);
3884
+ await tagInput.press("Enter");
3885
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags`, {
3886
+ hasText: tagName
3887
+ })).toBeVisible();
3888
+ }
3889
+ async removeTag(tagName) {
3890
+ const tag = this.page.locator(`#tags`, {
3891
+ hasText: tagName
3892
+ });
3893
+ const removeIcon = tag.locator(".tag-close");
3894
+ await removeIcon.click();
3895
+ await (0, $kKeXs$playwrighttest.expect)(tag).toHaveCount(0);
3896
+ }
3876
3897
  async expectTemplateTitleToBe(templateTitle) {
3877
3898
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
3878
3899
  }
@@ -6844,8 +6865,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6844
6865
  }).getByRole("checkbox")).toBeChecked();
6845
6866
  }
6846
6867
  async deleteUser(username) {
6847
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
6848
- await this.page.locator(".icon-delete").click();
6868
+ await this.page.getByTestId(`delete-btn-${username}`).click();
6849
6869
  await this.modal.delete();
6850
6870
  }
6851
6871
  async openRoles() {
@@ -6874,7 +6894,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6874
6894
  }).count()).toBeGreaterThan(0);
6875
6895
  if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6876
6896
  hasText: user.name
6877
- }).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
6897
+ }).locator('[data-testid="user-account-lock"]')).toBeVisible();
6878
6898
  if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6879
6899
  hasText: user.name
6880
6900
  }).locator(`td`).filter({
@@ -6890,7 +6910,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6890
6910
  }).locator(`td`).filter({
6891
6911
  hasText: user.externalId
6892
6912
  }).count()).toBeGreaterThan(0);
6893
- (0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
6913
+ (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6914
+ hasText: user.name
6915
+ }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
6894
6916
  }
6895
6917
  }
6896
6918
  async expectNoUser(username) {
@@ -6899,8 +6921,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6899
6921
  }
6900
6922
  async updateUser(username) {
6901
6923
  await this.filterUser(username);
6902
- await this.page.getByTestId(`user-actions-btn-${username}`).click();
6903
- await this.page.locator(".icon-edit").click();
6924
+ await this.page.getByRole("row", {
6925
+ name: "" + username + ""
6926
+ }).locator(".icon-edit").click();
6904
6927
  return this.modal;
6905
6928
  }
6906
6929
  async sortByColumn(columnName, columnIndex) {
@@ -6936,7 +6959,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6936
6959
  return this;
6937
6960
  }
6938
6961
  async expectUserUnlockedToaster(user) {
6939
- await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
6962
+ await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} was unlocked and can now login in again`)).toBeVisible({
6940
6963
  timeout: 10000
6941
6964
  });
6942
6965
  }