@digital-ai/devops-page-object-release 0.0.34 → 0.0.35
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 +6 -0
- package/dist/main.js +38 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +38 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -482,6 +482,9 @@ class $dfc4ce40cbd0eb71$export$f8e64fcf447db2bf extends (0, $9626bc9256ce31f7$ex
|
|
|
482
482
|
await (0, $hOLA6$expect)(createButton).not.toBeVisible();
|
|
483
483
|
}
|
|
484
484
|
async expectVariableWithNameValueAndType(name, value, type) {
|
|
485
|
+
await this.page.locator(".variables-list .row-table").waitFor({
|
|
486
|
+
timeout: 10000
|
|
487
|
+
});
|
|
485
488
|
const rowLocator = await this.page.locator(".variable .data-row").allTextContents();
|
|
486
489
|
(0, $hOLA6$expect)(rowLocator.toString()).toContain(name);
|
|
487
490
|
(0, $hOLA6$expect)(rowLocator.toString()).toContain(value);
|
|
@@ -998,6 +1001,9 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
998
1001
|
}).click();
|
|
999
1002
|
}
|
|
1000
1003
|
async createNewVariableForField(objectID, variable) {
|
|
1004
|
+
await this.page.locator(`div[data-testid="${objectID}"] .icon-variable`).waitFor({
|
|
1005
|
+
timeout: 10000
|
|
1006
|
+
});
|
|
1001
1007
|
await this.page.locator(`div[data-testid="${objectID}"] .icon-variable`).click();
|
|
1002
1008
|
await this.page.locator(`#${objectID}`).fill(variable);
|
|
1003
1009
|
await this.railLocator.locator(`.dot-popper button`, {
|
|
@@ -1535,6 +1541,7 @@ class $90bb70a7e909e500$export$62811a109bb4377d extends (0, $9626bc9256ce31f7$ex
|
|
|
1535
1541
|
await this.page.locator(`.map-data-row`).filter({
|
|
1536
1542
|
has: this.page.locator(`.map-key`).getByText(key)
|
|
1537
1543
|
}).locator(`.icon-delete`).click();
|
|
1544
|
+
await (0, $hOLA6$expect)(this.page.locator(`.map-data-row .map-key`).getByText(key)).not.toBeVisible();
|
|
1538
1545
|
return this;
|
|
1539
1546
|
}
|
|
1540
1547
|
async expectStringMapCount(count) {
|
|
@@ -2300,6 +2307,15 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2300
2307
|
async expectRiskProfileTitleToBe(riskProfile) {
|
|
2301
2308
|
await (0, $hOLA6$expect)(this.page.locator('[data-test="release-risk-profile"]')).toContainText(riskProfile);
|
|
2302
2309
|
}
|
|
2310
|
+
async expectStartFromReleaseToBe(parentRelease) {
|
|
2311
|
+
await (0, $hOLA6$expect)(this.page.locator(".started-from-release")).toHaveText(parentRelease);
|
|
2312
|
+
}
|
|
2313
|
+
async expectTemplateURLToBe(templateURL) {
|
|
2314
|
+
(0, $hOLA6$expect)(await this.page.locator('[data-test="created-from-template"]').getAttribute("href")).toContain(templateURL);
|
|
2315
|
+
}
|
|
2316
|
+
async expectStartFromReleaseURLToBe(parentReleaseURL) {
|
|
2317
|
+
(0, $hOLA6$expect)(await this.page.locator(".started-from-release").getAttribute("href")).toContain(parentReleaseURL);
|
|
2318
|
+
}
|
|
2303
2319
|
}
|
|
2304
2320
|
|
|
2305
2321
|
|
|
@@ -2978,9 +2994,9 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
2978
2994
|
})).not.toBeVisible();
|
|
2979
2995
|
}
|
|
2980
2996
|
async toggleTaskFilter(filterOption) {
|
|
2981
|
-
this.clickFilterOptions();
|
|
2997
|
+
await this.clickFilterOptions();
|
|
2982
2998
|
await this.page.locator(`#filter-container #${filterOption}`).click();
|
|
2983
|
-
this.clickFilterOptions();
|
|
2999
|
+
await this.clickFilterOptions();
|
|
2984
3000
|
}
|
|
2985
3001
|
async clickFilterOptions() {
|
|
2986
3002
|
await this.page.locator("#release-header .dropdown-button").click();
|
|
@@ -3244,10 +3260,13 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3244
3260
|
async clickViewAllCompletedPhase() {
|
|
3245
3261
|
await this.page.getByText("View all completed phases").click();
|
|
3246
3262
|
}
|
|
3247
|
-
async expectTaskToBePresent(taskName) {
|
|
3248
|
-
await (0, $hOLA6$expect)(this.phaseLocator.locator(".task").filter({
|
|
3263
|
+
async expectTaskToBePresent(taskName, visible = true) {
|
|
3264
|
+
if (visible) await (0, $hOLA6$expect)(this.phaseLocator.locator(".task").filter({
|
|
3249
3265
|
hasText: taskName
|
|
3250
3266
|
})).toBeVisible();
|
|
3267
|
+
else await (0, $hOLA6$expect)(this.phaseLocator.locator(".task").filter({
|
|
3268
|
+
hasText: taskName
|
|
3269
|
+
})).not.toBeVisible();
|
|
3251
3270
|
}
|
|
3252
3271
|
async expectContainingTask(taskName, exist = true) {
|
|
3253
3272
|
const taskHeaderLocator = this.phaseLocator.locator(".task-header").filter({
|
|
@@ -3275,13 +3294,27 @@ class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97
|
|
|
3275
3294
|
hasText: currentGroupType
|
|
3276
3295
|
}).getByText(taskTitle)).toBeVisible();
|
|
3277
3296
|
}
|
|
3278
|
-
async openContextMenuForTaskInGroup(
|
|
3297
|
+
async openContextMenuForTaskInGroup(groupName, taskTitle) {
|
|
3279
3298
|
const taskLocator = this.phaseLocator.filter({
|
|
3280
3299
|
hasText: groupName
|
|
3281
3300
|
}).locator(".task").filter({
|
|
3282
3301
|
hasText: taskTitle
|
|
3283
3302
|
});
|
|
3284
3303
|
await taskLocator.locator(".task-inner-active > .task-container > .task-box > .task > .context-menu-button").click();
|
|
3304
|
+
await taskLocator.locator(".task .context-menu-button").click();
|
|
3305
|
+
}
|
|
3306
|
+
async duplicateFromContextualMenuInGroup(groupName, taskTitle) {
|
|
3307
|
+
await this.openContextMenuForTaskInGroup(groupName, taskTitle);
|
|
3308
|
+
await this.page.locator(".dropdown-menu li").getByText("Duplicate").click();
|
|
3309
|
+
return this;
|
|
3310
|
+
}
|
|
3311
|
+
async deleteFromContextualMenuInGroup(groupName, taskTitle) {
|
|
3312
|
+
await this.openContextMenuForTaskInGroup(groupName, taskTitle);
|
|
3313
|
+
await this.page.locator(".dropdown-menu li").getByText("Delete").click();
|
|
3314
|
+
await this.page.getByRole("button", {
|
|
3315
|
+
name: "Delete"
|
|
3316
|
+
}).click();
|
|
3317
|
+
return this;
|
|
3285
3318
|
}
|
|
3286
3319
|
async duplicatePhase() {
|
|
3287
3320
|
await this.phaseLocator.locator(".duplicate-phase").click();
|
|
@@ -4963,9 +4996,6 @@ class $3a340a3f4fd8f04d$export$43682cddead1dd78 extends (0, $9626bc9256ce31f7$ex
|
|
|
4963
4996
|
}).click();
|
|
4964
4997
|
await this.page.locator(".tl-event-title").getByText(release_title).scrollIntoViewIfNeeded();
|
|
4965
4998
|
await this.page.locator(".tl-event-title").getByText(release_title).click();
|
|
4966
|
-
await this.page.locator(".release-modal-container").waitFor({
|
|
4967
|
-
state: "visible"
|
|
4968
|
-
});
|
|
4969
4999
|
const modalWindow = await this.page.locator(".release-modal-container").isVisible();
|
|
4970
5000
|
if (!modalWindow) {
|
|
4971
5001
|
await this.page.locator(".tl-event-title").getByText(release_title).scrollIntoViewIfNeeded();
|