@digital-ai/devops-page-object-release 0.0.65 → 0.0.67

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,17 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.67
4
+
5
+ ### Patch Changes
6
+
7
+ - 88902e8: Pre condition text editor locator changed as per new UI
8
+
9
+ ## 0.0.66
10
+
11
+ ### Patch Changes
12
+
13
+ - d408297: S-121984: page-objects updated for add-to-release-group-scenario
14
+
3
15
  ## 0.0.65
4
16
 
5
17
  ### Patch Changes
package/dist/main.js CHANGED
@@ -1170,6 +1170,47 @@ class $87643f2d97b0644e$export$a678525e79c4ccc4 extends (0, $f8721861c660dd88$ex
1170
1170
  }).click();
1171
1171
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".tl-viewport")).toBeVisible();
1172
1172
  }
1173
+ async openReleasesList() {
1174
+ await this.page.goto("./#/releases");
1175
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release-list")).toBeVisible();
1176
+ return this;
1177
+ }
1178
+ async clickReleaseOptions(releaseTitle) {
1179
+ await this.page.locator(".release-line").filter({
1180
+ hasText: releaseTitle
1181
+ }).locator(".options-icon").click({
1182
+ force: true
1183
+ });
1184
+ return this;
1185
+ }
1186
+ async clickAddToRelease() {
1187
+ const addToGroupLink = this.page.locator('a:has-text("Add to group")');
1188
+ await (0, $kKeXs$playwrighttest.expect)(addToGroupLink).toBeVisible();
1189
+ await addToGroupLink.click({
1190
+ force: true
1191
+ });
1192
+ return this;
1193
+ }
1194
+ async checkAddDisabled() {
1195
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".modal-footer .primary")).toBeDisabled();
1196
+ return this;
1197
+ }
1198
+ async selectReleaseGroup(rgTitle) {
1199
+ await this.page.locator(".ui-autocomplete-input").click({
1200
+ force: true
1201
+ });
1202
+ await this.page.locator(".ui-autocomplete-input").fill(rgTitle);
1203
+ await this.page.locator(".ui-autocomplete-input").press("Backspace");
1204
+ await this.page.locator("li").filter({
1205
+ hasText: rgTitle
1206
+ }).click();
1207
+ return this;
1208
+ }
1209
+ async clickAddToReleaseGroup() {
1210
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".modal-footer .primary")).toBeVisible();
1211
+ await this.page.locator(".modal-footer .primary").click();
1212
+ return this;
1213
+ }
1173
1214
  }
1174
1215
 
1175
1216
 
@@ -1918,7 +1959,7 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
1918
1959
  super(page);
1919
1960
  this.railLocator = this.page.locator("task-drawer .dot-drawer .task-conditions");
1920
1961
  this.preconditionToggle = page.getByLabel("Enable precondition");
1921
- this.textEditor = page.getByRole("textbox");
1962
+ this.textEditor = page.locator("textarea");
1922
1963
  this.saveButton = page.getByTestId("save-btn");
1923
1964
  }
1924
1965
  async enablePrecondition() {
@@ -10798,6 +10839,9 @@ class $6998c6a53a9eb4fa$var$Fixtures {
10798
10839
  deleteUserProfile(userProfile) {
10799
10840
  return this.doDelete(`fixtures/userProfile/${userProfile}`);
10800
10841
  }
10842
+ deleteReleaseGroup(releaseGroup) {
10843
+ return this.doDelete(`fixtures/release-groups/${releaseGroup}`);
10844
+ }
10801
10845
  deleteTrigger(id) {
10802
10846
  return this.doDelete(`fixtures/trigger/${id}`);
10803
10847
  }