@digital-ai/devops-page-object-release 0.0.96 → 0.0.98

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,5 +1,18 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.98
4
+
5
+ ### Patch Changes
6
+
7
+ - f76a633: S-127036: Update for Action button with options. Updated the action button implementation to use a dropdown menu pattern instead of direct action buttons.
8
+
9
+ ## 0.0.97
10
+
11
+ ### Patch Changes
12
+
13
+ - d9df9fb: S-126029: Added new column details for testing account lock
14
+ - 686fc2e: S-126903: Migrated release-tags-scenario to playwright
15
+
3
16
  ## 0.0.96
4
17
 
5
18
  ### Patch Changes
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,7 +6865,9 @@ 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(`delete-btn-${username}`).click();
6868
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
6869
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".icon-delete")).toBeVisible();
6870
+ await this.page.locator(".icon-delete").click();
6848
6871
  await this.modal.delete();
6849
6872
  }
6850
6873
  async openRoles() {
@@ -6871,6 +6894,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6871
6894
  }).locator(`td`).filter({
6872
6895
  hasText: type
6873
6896
  }).count()).toBeGreaterThan(0);
6897
+ if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6898
+ hasText: user.name
6899
+ }).locator('[data-testid="user-account-lock"]')).toBeVisible();
6874
6900
  if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6875
6901
  hasText: user.name
6876
6902
  }).locator(`td`).filter({
@@ -6886,9 +6912,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6886
6912
  }).locator(`td`).filter({
6887
6913
  hasText: user.externalId
6888
6914
  }).count()).toBeGreaterThan(0);
6889
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6890
- hasText: user.name
6891
- }).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
6915
+ (0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
6892
6916
  }
6893
6917
  }
6894
6918
  async expectNoUser(username) {
@@ -6897,9 +6921,10 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6897
6921
  }
6898
6922
  async updateUser(username) {
6899
6923
  await this.filterUser(username);
6900
- await this.page.getByRole("row", {
6901
- name: "" + username + ""
6902
- }).locator(".icon-edit").click();
6924
+ await this.page.getByTestId(`user-actions-btn-${username}`).click();
6925
+ const editIcon = this.page.locator(".icon-edit");
6926
+ await (0, $kKeXs$playwrighttest.expect)(editIcon).toBeVisible();
6927
+ await editIcon.click();
6903
6928
  return this.modal;
6904
6929
  }
6905
6930
  async sortByColumn(columnName, columnIndex) {
@@ -6935,7 +6960,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6935
6960
  return this;
6936
6961
  }
6937
6962
  async expectUserUnlockedToaster(user) {
6938
- await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
6963
+ await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} was unlocked and can now login in again.`)).toBeVisible({
6939
6964
  timeout: 10000
6940
6965
  });
6941
6966
  }