@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 +12 -0
- package/dist/main.js +45 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +45 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -234,6 +234,47 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $9626bc9256ce31f7$ex
|
|
|
234
234
|
}).click();
|
|
235
235
|
await (0, $hOLA6$expect)(this.page.locator(".tl-viewport")).toBeVisible();
|
|
236
236
|
}
|
|
237
|
+
async openReleasesList() {
|
|
238
|
+
await this.page.goto("./#/releases");
|
|
239
|
+
await (0, $hOLA6$expect)(this.page.locator(".release-list")).toBeVisible();
|
|
240
|
+
return this;
|
|
241
|
+
}
|
|
242
|
+
async clickReleaseOptions(releaseTitle) {
|
|
243
|
+
await this.page.locator(".release-line").filter({
|
|
244
|
+
hasText: releaseTitle
|
|
245
|
+
}).locator(".options-icon").click({
|
|
246
|
+
force: true
|
|
247
|
+
});
|
|
248
|
+
return this;
|
|
249
|
+
}
|
|
250
|
+
async clickAddToRelease() {
|
|
251
|
+
const addToGroupLink = this.page.locator('a:has-text("Add to group")');
|
|
252
|
+
await (0, $hOLA6$expect)(addToGroupLink).toBeVisible();
|
|
253
|
+
await addToGroupLink.click({
|
|
254
|
+
force: true
|
|
255
|
+
});
|
|
256
|
+
return this;
|
|
257
|
+
}
|
|
258
|
+
async checkAddDisabled() {
|
|
259
|
+
await (0, $hOLA6$expect)(this.page.locator(".modal-footer .primary")).toBeDisabled();
|
|
260
|
+
return this;
|
|
261
|
+
}
|
|
262
|
+
async selectReleaseGroup(rgTitle) {
|
|
263
|
+
await this.page.locator(".ui-autocomplete-input").click({
|
|
264
|
+
force: true
|
|
265
|
+
});
|
|
266
|
+
await this.page.locator(".ui-autocomplete-input").fill(rgTitle);
|
|
267
|
+
await this.page.locator(".ui-autocomplete-input").press("Backspace");
|
|
268
|
+
await this.page.locator("li").filter({
|
|
269
|
+
hasText: rgTitle
|
|
270
|
+
}).click();
|
|
271
|
+
return this;
|
|
272
|
+
}
|
|
273
|
+
async clickAddToReleaseGroup() {
|
|
274
|
+
await (0, $hOLA6$expect)(this.page.locator(".modal-footer .primary")).toBeVisible();
|
|
275
|
+
await this.page.locator(".modal-footer .primary").click();
|
|
276
|
+
return this;
|
|
277
|
+
}
|
|
237
278
|
}
|
|
238
279
|
|
|
239
280
|
|
|
@@ -982,7 +1023,7 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
|
|
|
982
1023
|
super(page);
|
|
983
1024
|
this.railLocator = this.page.locator("task-drawer .dot-drawer .task-conditions");
|
|
984
1025
|
this.preconditionToggle = page.getByLabel("Enable precondition");
|
|
985
|
-
this.textEditor = page.
|
|
1026
|
+
this.textEditor = page.locator("textarea");
|
|
986
1027
|
this.saveButton = page.getByTestId("save-btn");
|
|
987
1028
|
}
|
|
988
1029
|
async enablePrecondition() {
|
|
@@ -9188,6 +9229,9 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
9188
9229
|
deleteUserProfile(userProfile) {
|
|
9189
9230
|
return this.doDelete(`fixtures/userProfile/${userProfile}`);
|
|
9190
9231
|
}
|
|
9232
|
+
deleteReleaseGroup(releaseGroup) {
|
|
9233
|
+
return this.doDelete(`fixtures/release-groups/${releaseGroup}`);
|
|
9234
|
+
}
|
|
9191
9235
|
deleteTrigger(id) {
|
|
9192
9236
|
return this.doDelete(`fixtures/trigger/${id}`);
|
|
9193
9237
|
}
|