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

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,12 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.97
4
+
5
+ ### Patch Changes
6
+
7
+ - d9df9fb: S-126029: Added new column details for testing account lock
8
+ - 686fc2e: S-126903: Migrated release-tags-scenario to playwright
9
+
3
10
  ## 0.0.96
4
11
 
5
12
  ### 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
  }
@@ -6871,6 +6892,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6871
6892
  }).locator(`td`).filter({
6872
6893
  hasText: type
6873
6894
  }).count()).toBeGreaterThan(0);
6895
+ if (user.accountLocked) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6896
+ hasText: user.name
6897
+ }).locator('[data-testid="user-account-lock"]')).toBeVisible();
6874
6898
  if (user.email) (0, $kKeXs$playwrighttest.expect)(await this.page.locator(`tr`).filter({
6875
6899
  hasText: user.name
6876
6900
  }).locator(`td`).filter({
@@ -6935,7 +6959,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6935
6959
  return this;
6936
6960
  }
6937
6961
  async expectUserUnlockedToaster(user) {
6938
- 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({
6939
6963
  timeout: 10000
6940
6964
  });
6941
6965
  }