@digital-ai/devops-page-object-release 0.0.0-snapshot-20251209071345 → 0.0.0-snapshot-20251209141752

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,28 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20251209071345
3
+ ## 0.0.0-snapshot-20251209141752
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 8aa7e82: S-126989: Migrated to release-download-ics-scenario to playwright
7
+ - 48c6bd0: S-126903: Migrated release-tags-scenario to playwright
8
+
9
+ ## 0.0.96
10
+
11
+ ### Patch Changes
12
+
13
+ - 192cd69: S-126989: Migrated to release-download-ics-scenario to playwright
14
+
15
+ ## 0.0.95
16
+
17
+ ### Patch Changes
18
+
19
+ - dead89c: S-126861: Added page objects for template-flag-scenario conversion
20
+
21
+ ## 0.0.94
22
+
23
+ ### Patch Changes
24
+
25
+ - 46cad37: S-126454 - added new methods for unlocking users and verifying warning messages
8
26
 
9
27
  ## 0.0.93
10
28
 
package/dist/main.js CHANGED
@@ -1258,6 +1258,10 @@ class $87643f2d97b0644e$export$a678525e79c4ccc4 extends (0, $e403098cd4f59faa$ex
1258
1258
  }).click();
1259
1259
  return new (0, $9b9a8c3da392d020$export$f43492e8ac3c566)(this.page);
1260
1260
  }
1261
+ async expectReleaseFlagged(title, flag) {
1262
+ const release = this.page.locator(`.release:has-text("${title}").flagged_${flag}`);
1263
+ await (0, $kKeXs$playwrighttest.expect)(release).toBeVisible();
1264
+ }
1261
1265
  async createNewRelease(releaseName, description) {
1262
1266
  await this.releaseCreatePage.setName(releaseName);
1263
1267
  await this.releaseCreatePage.setDescription(description);
@@ -3869,6 +3873,27 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
3869
3873
  async expectReleaseTaggedWith(tagName) {
3870
3874
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tags")).toContainText(tagName);
3871
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
+ }
3872
3897
  async expectTemplateTitleToBe(templateTitle) {
3873
3898
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
3874
3899
  }
@@ -6930,6 +6955,24 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
6930
6955
  })).toHaveCount(0);
6931
6956
  return this;
6932
6957
  }
6958
+ async expectUserUnlockedToaster(user) {
6959
+ await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
6960
+ timeout: 10000
6961
+ });
6962
+ }
6963
+ async unlockUser(user) {
6964
+ await this.page.getByTestId(`unlock-btn-${user}`).click();
6965
+ }
6966
+ async expectWarningVisibility(warningRegex, shouldBeVisible) {
6967
+ const locator = this.page.getByText(warningRegex);
6968
+ if (shouldBeVisible) await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(1);
6969
+ else await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(0);
6970
+ }
6971
+ async editUserClickCancelButton() {
6972
+ await this.page.getByRole("button", {
6973
+ name: "Cancel"
6974
+ }).click();
6975
+ }
6933
6976
  }
6934
6977
 
6935
6978