@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/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
  }
@@ -5935,6 +5956,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5935
5956
  }).locator(`td`).filter({
5936
5957
  hasText: type
5937
5958
  }).count()).toBeGreaterThan(0);
5959
+ if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5960
+ hasText: user.name
5961
+ }).locator('[data-testid="user-account-lock"]')).toBeVisible();
5938
5962
  if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
5939
5963
  hasText: user.name
5940
5964
  }).locator(`td`).filter({
@@ -5999,7 +6023,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
5999
6023
  return this;
6000
6024
  }
6001
6025
  async expectUserUnlockedToaster(user) {
6002
- 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({
6003
6027
  timeout: 10000
6004
6028
  });
6005
6029
  }