@digital-ai/devops-page-object-release 0.0.38 → 0.0.39
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 +79 -36
- package/dist/main.js.map +1 -1
- package/dist/module.js +79 -36
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -1758,9 +1758,16 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1758
1758
|
}).locator(".task-date").waitFor({
|
|
1759
1759
|
timeout: 10000
|
|
1760
1760
|
});
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1761
|
+
// reclick if the date picker is not visible
|
|
1762
|
+
await (0, $hOLA6$expect)(async ()=>{
|
|
1763
|
+
await this.page.locator(".flex-section.column").filter({
|
|
1764
|
+
hasText: "Start date"
|
|
1765
|
+
}).locator(".task-date").click();
|
|
1766
|
+
// month + year, we check for 20xx year
|
|
1767
|
+
await (0, $hOLA6$expect)(this.page.locator(".MuiPickersCalendarHeader-label")).toContainText("20", {
|
|
1768
|
+
timeout: 100
|
|
1769
|
+
});
|
|
1770
|
+
}).toPass();
|
|
1764
1771
|
await this.setDate(date, monthYear);
|
|
1765
1772
|
}
|
|
1766
1773
|
async setEndDate(date, monthYear) {
|
|
@@ -1769,9 +1776,16 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1769
1776
|
}).locator(".task-date").waitFor({
|
|
1770
1777
|
timeout: 10000
|
|
1771
1778
|
});
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1779
|
+
// reclick if the date picker is not visible
|
|
1780
|
+
await (0, $hOLA6$expect)(async ()=>{
|
|
1781
|
+
await this.page.locator(".flex-section.column").filter({
|
|
1782
|
+
hasText: "End date"
|
|
1783
|
+
}).locator(".task-date").click();
|
|
1784
|
+
// month + year, we check for 20xx year
|
|
1785
|
+
await (0, $hOLA6$expect)(this.page.locator(".MuiPickersCalendarHeader-label")).toContainText("20", {
|
|
1786
|
+
timeout: 100
|
|
1787
|
+
});
|
|
1788
|
+
}).toPass();
|
|
1775
1789
|
await this.setDate(date, monthYear);
|
|
1776
1790
|
}
|
|
1777
1791
|
async setDate(date, monthYear) {
|
|
@@ -1824,6 +1838,10 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
1824
1838
|
});
|
|
1825
1839
|
this.taskDrawerLocator = this.page.locator("task-drawer .dot-drawer");
|
|
1826
1840
|
}
|
|
1841
|
+
async waitForTaskDrawer() {
|
|
1842
|
+
const handle = await this.page.locator(".dot-drawer-paper").elementHandle();
|
|
1843
|
+
await handle?.waitForElementState("stable");
|
|
1844
|
+
}
|
|
1827
1845
|
async openOverviewRail() {
|
|
1828
1846
|
await this.openRail("Overview");
|
|
1829
1847
|
}
|
|
@@ -2157,6 +2175,7 @@ class $a546aadb4e6fa16a$export$5a82be0a2a261cc6 extends (0, $9626bc9256ce31f7$ex
|
|
|
2157
2175
|
}
|
|
2158
2176
|
async openTaskDrawer(title) {
|
|
2159
2177
|
await this.page.getByTitle(title).dblclick();
|
|
2178
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
2160
2179
|
return this.taskDrawer;
|
|
2161
2180
|
}
|
|
2162
2181
|
async openPhaseDetails(phaseName) {
|
|
@@ -2549,9 +2568,9 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2549
2568
|
}
|
|
2550
2569
|
async expectTaskRowCountToBe(title, expectedCount) {
|
|
2551
2570
|
await this.refreshButton.click();
|
|
2552
|
-
(0, $hOLA6$expect)(
|
|
2571
|
+
await (0, $hOLA6$expect)(this.page.locator(".name-cell-title").filter({
|
|
2553
2572
|
hasText: title
|
|
2554
|
-
})
|
|
2573
|
+
})).toHaveCount(expectedCount);
|
|
2555
2574
|
}
|
|
2556
2575
|
async setHeaderFilter(columnTitle, valueToFilter) {
|
|
2557
2576
|
const filter = this.page.locator(`.ui-grid-header-cell`).filter({
|
|
@@ -2561,8 +2580,7 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2561
2580
|
await filter.fill(valueToFilter);
|
|
2562
2581
|
}
|
|
2563
2582
|
async expectRowCountToBe(cellCount) {
|
|
2564
|
-
|
|
2565
|
-
(0, $hOLA6$expect)(cont).toBe(cellCount);
|
|
2583
|
+
await (0, $hOLA6$expect)(this.page.locator(".ui-grid-canvas .name-cell")).toHaveCount(cellCount);
|
|
2566
2584
|
}
|
|
2567
2585
|
async filterStartDate(date, monthYear) {
|
|
2568
2586
|
await this.page.locator(`.ui-grid-header-cell`).filter({
|
|
@@ -2580,6 +2598,7 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2580
2598
|
await this.page.locator(".name-cell-title").filter({
|
|
2581
2599
|
hasText: taskTitle
|
|
2582
2600
|
}).click();
|
|
2601
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
2583
2602
|
return this.taskDrawer;
|
|
2584
2603
|
}
|
|
2585
2604
|
async collapseNthRowByIndex(Indexnumber) {
|
|
@@ -2590,25 +2609,31 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2590
2609
|
}
|
|
2591
2610
|
async expectTaskToHaveStatus(taskTitle, status) {
|
|
2592
2611
|
await this.refreshButton.click();
|
|
2593
|
-
(0, $hOLA6$expect)(
|
|
2612
|
+
await (0, $hOLA6$expect)(this.page.locator(".ui-grid-row").filter({
|
|
2594
2613
|
hasText: taskTitle
|
|
2595
|
-
}).locator(".label
|
|
2614
|
+
}).locator(".label")).toContainText(status);
|
|
2596
2615
|
}
|
|
2597
2616
|
async expectOverdueOnEndDate(taskTitle) {
|
|
2598
|
-
(0, $hOLA6$expect)(
|
|
2617
|
+
await (0, $hOLA6$expect)(this.page.locator(`.ui-grid-row`).filter({
|
|
2599
2618
|
hasText: taskTitle
|
|
2600
|
-
}).locator(`i.xl-icon.delay-icon.overdue-icon`)
|
|
2619
|
+
}).locator(`i.xl-icon.delay-icon.overdue-icon`)).toBeVisible();
|
|
2601
2620
|
}
|
|
2602
2621
|
async selectTask(taskTitle) {
|
|
2603
|
-
|
|
2622
|
+
const checkboxLocator = this.page.locator(`.ui-grid-cell-contents`).filter({
|
|
2604
2623
|
hasText: taskTitle
|
|
2605
|
-
}).locator(
|
|
2606
|
-
|
|
2607
|
-
|
|
2624
|
+
}).locator(`input.item-selector`);
|
|
2625
|
+
await (0, $hOLA6$expect)(async ()=>{
|
|
2626
|
+
await checkboxLocator.click({
|
|
2627
|
+
force: true
|
|
2628
|
+
});
|
|
2629
|
+
await (0, $hOLA6$expect)(checkboxLocator).toBeChecked({
|
|
2630
|
+
timeout: 1000
|
|
2631
|
+
});
|
|
2632
|
+
}).toPass();
|
|
2608
2633
|
}
|
|
2609
2634
|
async expectSelectedTasksCounter(text) {
|
|
2610
2635
|
await (0, $hOLA6$expect)(this.page.getByTestId("release-grid-selected-tasks")).toBeVisible();
|
|
2611
|
-
(0, $hOLA6$expect)(
|
|
2636
|
+
await (0, $hOLA6$expect)(this.page.getByTestId("release-grid-selected-tasks")).toContainText(text);
|
|
2612
2637
|
}
|
|
2613
2638
|
async clearSelection() {
|
|
2614
2639
|
await this.page.getByTestId("release-grid-unselect-btn").click();
|
|
@@ -2645,7 +2670,7 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2645
2670
|
async completeSelectedTasks(comment) {
|
|
2646
2671
|
await this.page.getByTestId("release-grid-complete-btn").click();
|
|
2647
2672
|
await this.page.getByPlaceholder("Give feedback or place a").fill(comment);
|
|
2648
|
-
await this.page.getByRole("button", {
|
|
2673
|
+
await this.page.locator(".modal-footer").getByRole("button", {
|
|
2649
2674
|
name: "Complete"
|
|
2650
2675
|
}).click();
|
|
2651
2676
|
return this;
|
|
@@ -2655,11 +2680,13 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
2655
2680
|
await this.page.getByRole("menuitem", {
|
|
2656
2681
|
name: menuItem
|
|
2657
2682
|
}).click();
|
|
2658
|
-
if (
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2683
|
+
if ([
|
|
2684
|
+
"Skip",
|
|
2685
|
+
"Reopen",
|
|
2686
|
+
"Retry",
|
|
2687
|
+
"Fail"
|
|
2688
|
+
].includes(menuItem)) await this.commentBox.fill("Automation Test Comment");
|
|
2689
|
+
await this.page.getByRole("button", {
|
|
2663
2690
|
name: menuItem,
|
|
2664
2691
|
exact: true
|
|
2665
2692
|
}).click();
|
|
@@ -2975,18 +3002,21 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
2975
3002
|
await this.page.locator(".task-header").getByText(taskName, {
|
|
2976
3003
|
exact: true
|
|
2977
3004
|
}).click();
|
|
3005
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
2978
3006
|
return this.taskDrawer;
|
|
2979
3007
|
}
|
|
2980
3008
|
async openTaskDrawerFromTableView(taskName) {
|
|
2981
3009
|
await this.page.locator(".name-cell-title").getByText(taskName, {
|
|
2982
3010
|
exact: true
|
|
2983
3011
|
}).click();
|
|
3012
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
2984
3013
|
return this.taskDrawer;
|
|
2985
3014
|
}
|
|
2986
3015
|
async openTaskDrawerFromGrantt(taskName) {
|
|
2987
3016
|
await this.page.locator(".gantt_tree_content").getByText(taskName, {
|
|
2988
3017
|
exact: true
|
|
2989
3018
|
}).dblclick();
|
|
3019
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
2990
3020
|
return this.taskDrawer;
|
|
2991
3021
|
}
|
|
2992
3022
|
async openVariables() {
|
|
@@ -5160,18 +5190,21 @@ class $3a340a3f4fd8f04d$export$43682cddead1dd78 extends (0, $9626bc9256ce31f7$ex
|
|
|
5160
5190
|
await this.page.getByRole("button", {
|
|
5161
5191
|
name: "Today"
|
|
5162
5192
|
}).click();
|
|
5163
|
-
await
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
await this.page.locator(".tl-event-title").getByText(release_title).
|
|
5168
|
-
|
|
5169
|
-
|
|
5193
|
+
await (0, $hOLA6$expect)(async ()=>{
|
|
5194
|
+
await this.page.locator(".tl-event-title").getByText(release_title).scrollIntoViewIfNeeded({
|
|
5195
|
+
timeout: 1000
|
|
5196
|
+
});
|
|
5197
|
+
await this.page.locator(".tl-event-title").getByText(release_title).click({
|
|
5198
|
+
timeout: 1000
|
|
5199
|
+
});
|
|
5200
|
+
await (0, $hOLA6$expect)(this.page.locator(".release-modal-container .xl-icon.release-icon")).toBeVisible({
|
|
5201
|
+
timeout: 1000
|
|
5202
|
+
});
|
|
5203
|
+
}).toPass();
|
|
5170
5204
|
await this.page.locator(".release-modal-container").locator(".xl-icon.release-icon").click();
|
|
5171
5205
|
const releaseurl = `/#/releases/${release_id}`;
|
|
5172
|
-
const currentURL = await this.page.url();
|
|
5173
5206
|
// Check if the release name present in redirected URL
|
|
5174
|
-
(0, $hOLA6$expect)(
|
|
5207
|
+
(0, $hOLA6$expect)(this.page.url()).toContain(releaseurl);
|
|
5175
5208
|
}
|
|
5176
5209
|
async viewDependency(source_release, dest_release) {
|
|
5177
5210
|
const source_text = source_release + "dependencies";
|
|
@@ -5232,12 +5265,12 @@ class $cc2d15e53de5cef7$export$b6fbc3e67030138f extends (0, $9626bc9256ce31f7$ex
|
|
|
5232
5265
|
await (0, $hOLA6$expect)(this.page.locator(".release-status")).toContainText(status);
|
|
5233
5266
|
}
|
|
5234
5267
|
async expectReleaseGroupDisplayed(title) {
|
|
5235
|
-
await (0, $hOLA6$expect)(this.page.getByText(title, {
|
|
5268
|
+
await (0, $hOLA6$expect)(this.page.locator(".row").getByText(title, {
|
|
5236
5269
|
exact: true
|
|
5237
5270
|
})).toBeVisible();
|
|
5238
5271
|
}
|
|
5239
5272
|
async expectReleaseGroupNotDisplayed(title) {
|
|
5240
|
-
await (0, $hOLA6$expect)(this.page.getByText(title, {
|
|
5273
|
+
await (0, $hOLA6$expect)(this.page.locator(".row").getByText(title, {
|
|
5241
5274
|
exact: true
|
|
5242
5275
|
})).not.toBeVisible();
|
|
5243
5276
|
}
|
|
@@ -5738,6 +5771,7 @@ class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $9626bc9256ce31f7$ex
|
|
|
5738
5771
|
await this.page.locator(`.row.task-inner`, {
|
|
5739
5772
|
hasText: taskName
|
|
5740
5773
|
}).getByText(taskName).click();
|
|
5774
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
5741
5775
|
}
|
|
5742
5776
|
async filterTaskByTitle(taskname) {
|
|
5743
5777
|
await this.page.locator(".searchFilter").click();
|
|
@@ -5928,6 +5962,7 @@ class $c37c93912f458e81$var$GridView extends (0, $9626bc9256ce31f7$export$2b65d1
|
|
|
5928
5962
|
await this.page.locator(`[data-test-id="${taskId}"] .title`).filter({
|
|
5929
5963
|
hasText: taskTitle
|
|
5930
5964
|
}).click();
|
|
5965
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
5931
5966
|
return this.taskDrawer;
|
|
5932
5967
|
}
|
|
5933
5968
|
async openContextualMenu(taskId) {
|
|
@@ -6174,18 +6209,21 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
6174
6209
|
await this.page.getByText(taskName, {
|
|
6175
6210
|
exact: true
|
|
6176
6211
|
}).click();
|
|
6212
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
6177
6213
|
return this.taskDrawer;
|
|
6178
6214
|
}
|
|
6179
6215
|
async openTaskDrawerFromTableView(taskName) {
|
|
6180
6216
|
await this.page.locator(".name-cell-title").getByText(taskName, {
|
|
6181
6217
|
exact: true
|
|
6182
6218
|
}).click();
|
|
6219
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
6183
6220
|
return this.taskDrawer;
|
|
6184
6221
|
}
|
|
6185
6222
|
async openTaskDrawerFromGrantt(taskName) {
|
|
6186
6223
|
await this.page.locator(".gantt_tree_content").getByText(taskName, {
|
|
6187
6224
|
exact: true
|
|
6188
6225
|
}).dblclick();
|
|
6226
|
+
await this.taskDrawer.waitForTaskDrawer();
|
|
6189
6227
|
return this.taskDrawer;
|
|
6190
6228
|
}
|
|
6191
6229
|
async openProperties() {
|
|
@@ -7700,6 +7738,9 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
7700
7738
|
deleteFolder(folderId) {
|
|
7701
7739
|
return this.doDelete(`api/v1/folders/${folderId}`);
|
|
7702
7740
|
}
|
|
7741
|
+
deleteGlobalVariables() {
|
|
7742
|
+
return this.doDelete("fixtures/globalVariables");
|
|
7743
|
+
}
|
|
7703
7744
|
activityLogs(id, logs) {
|
|
7704
7745
|
return this.doPost(`fixtures/activityLogs/${id}`, logs);
|
|
7705
7746
|
}
|
|
@@ -7751,6 +7792,8 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
7751
7792
|
for (const releaseId of this.releaseIds.reverse())await this.deleteRelease(releaseId);
|
|
7752
7793
|
for (const confId of this.configurationIds)await this.deleteConfiguration(confId);
|
|
7753
7794
|
for (const folderId of this.folderIds.reverse())await this.deleteFolder(folderId);
|
|
7795
|
+
await this.deleteGlobalVariables();
|
|
7796
|
+
this.globalVariableIds = [];
|
|
7754
7797
|
this.folderIds = [];
|
|
7755
7798
|
this.releaseIds = [];
|
|
7756
7799
|
this.triggerIds = [];
|