@digital-ai/devops-page-object-release 0.0.19 → 0.0.20
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 +10 -0
- package/dist/main.js +604 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +604 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +134 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -640,7 +640,7 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
640
640
|
await this.page.waitForTimeout(1000);
|
|
641
641
|
await this.retryButton.click();
|
|
642
642
|
await this.commentBox.fill(comment);
|
|
643
|
-
await this.
|
|
643
|
+
await this.page.getByTestId("popper-test-id-content-wrapper").getByTestId("dot-button").click();
|
|
644
644
|
}
|
|
645
645
|
async skipTask(comment) {
|
|
646
646
|
await this.openMenu.click();
|
|
@@ -933,6 +933,10 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
933
933
|
}
|
|
934
934
|
await this.page.keyboard.press("Escape");
|
|
935
935
|
}
|
|
936
|
+
async checkAbortOnFailure() {
|
|
937
|
+
await this.page.locator("#release-form-abort-on-failure").check();
|
|
938
|
+
await (0, $hOLA6$expect)(this.page.locator("#release-form-abort-on-failure")).toBeChecked();
|
|
939
|
+
}
|
|
936
940
|
}
|
|
937
941
|
|
|
938
942
|
|
|
@@ -1131,9 +1135,12 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
1131
1135
|
async expectNotFlagged() {
|
|
1132
1136
|
await (0, $hOLA6$expect)(this.page.locator(".flag-none-icon")).toBeHidden();
|
|
1133
1137
|
}
|
|
1134
|
-
async
|
|
1138
|
+
async expectRiskFlagOnTaskCard() {
|
|
1135
1139
|
await (0, $hOLA6$expect)(this.page.locator(".risk-flag-icon")).toBeVisible();
|
|
1136
1140
|
}
|
|
1141
|
+
async expectFlagOnCompletedTaskCard() {
|
|
1142
|
+
await (0, $hOLA6$expect)(this.page.locator(".flag-count")).toBeVisible();
|
|
1143
|
+
}
|
|
1137
1144
|
async refresh() {
|
|
1138
1145
|
await this.page.reload();
|
|
1139
1146
|
await this.page.waitForSelector("#release");
|
|
@@ -1396,6 +1403,38 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
1396
1403
|
}).click();
|
|
1397
1404
|
await downloadPromise;
|
|
1398
1405
|
}
|
|
1406
|
+
async expectTaskToBePresent(taskName) {
|
|
1407
|
+
await (0, $hOLA6$expect)(this.page.locator(".task").filter({
|
|
1408
|
+
hasText: taskName
|
|
1409
|
+
})).toBeVisible();
|
|
1410
|
+
}
|
|
1411
|
+
async expectTaskNotToBePresent(taskName) {
|
|
1412
|
+
await (0, $hOLA6$expect)(this.page.locator(".task").filter({
|
|
1413
|
+
hasText: taskName
|
|
1414
|
+
})).not.toBeVisible();
|
|
1415
|
+
}
|
|
1416
|
+
async toggleTaskFilter(filterOption) {
|
|
1417
|
+
this.clickFilterOptions();
|
|
1418
|
+
await this.page.locator(`#filter-container #${filterOption}`).click();
|
|
1419
|
+
this.clickFilterOptions();
|
|
1420
|
+
}
|
|
1421
|
+
async clickFilterOptions() {
|
|
1422
|
+
await this.page.locator("#release-header .dropdown-button").click();
|
|
1423
|
+
}
|
|
1424
|
+
async expectTaskToHaveFailed(title, failCount) {
|
|
1425
|
+
await (0, $hOLA6$expect)(this.page.locator(`.task`).filter({
|
|
1426
|
+
hasText: title
|
|
1427
|
+
}).locator(`.task-infos .failure-count.count-warning`)).toBeVisible();
|
|
1428
|
+
const count = await this.page.locator(`.task`).filter({
|
|
1429
|
+
hasText: title
|
|
1430
|
+
}).locator(`.task-infos .failure-count.count-warning`).innerText();
|
|
1431
|
+
(0, $hOLA6$expect)(count).toContain(failCount.toString());
|
|
1432
|
+
}
|
|
1433
|
+
async expectTaskToHaveBeenDelayed(title) {
|
|
1434
|
+
await (0, $hOLA6$expect)(this.page.locator(`.task`).filter({
|
|
1435
|
+
hasText: title
|
|
1436
|
+
}).locator(`.task-infos .delay-count`)).toBeVisible();
|
|
1437
|
+
}
|
|
1399
1438
|
}
|
|
1400
1439
|
class $43cbcdfccb6c2a76$var$Phase extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1401
1440
|
constructor(page, phaseName){
|
|
@@ -1980,6 +2019,66 @@ class $d13e78163af94d50$var$Properties extends (0, $9626bc9256ce31f7$export$2b65
|
|
|
1980
2019
|
|
|
1981
2020
|
|
|
1982
2021
|
|
|
2022
|
+
|
|
2023
|
+
class $7e73332bf754777c$export$32284f8bcf0bc407 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
2024
|
+
constructor(page){
|
|
2025
|
+
super(page);
|
|
2026
|
+
this.inheritCheckbox = page.getByRole("checkbox");
|
|
2027
|
+
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
2028
|
+
}
|
|
2029
|
+
async checkInheritNotifications() {
|
|
2030
|
+
await this.inheritCheckbox.click();
|
|
2031
|
+
if (await this.page.getByText("Override notification settings").isVisible()) await this.page.getByRole("button", {
|
|
2032
|
+
name: "Ok"
|
|
2033
|
+
}).click();
|
|
2034
|
+
await (0, $hOLA6$expect)(this.page.getByRole("checkbox")).toBeChecked();
|
|
2035
|
+
await (0, $hOLA6$expect)(this.page.locator(".xl-icon.edit-icon")).not.toBeVisible();
|
|
2036
|
+
}
|
|
2037
|
+
async uncheckInheritNotifications() {
|
|
2038
|
+
await this.inheritCheckbox.dblclick();
|
|
2039
|
+
await (0, $hOLA6$expect)(this.page.getByRole("checkbox")).not.toBeChecked();
|
|
2040
|
+
await (0, $hOLA6$expect)(this.page.locator(".xl-icon.edit-icon").first()).toBeVisible();
|
|
2041
|
+
}
|
|
2042
|
+
async expectRecipientsNotToBeEditable(eventName) {
|
|
2043
|
+
eventName = eventName.replace(/\s+/g, "_").toUpperCase();
|
|
2044
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test="${eventName}"]`).getByText("Edit Message")).not.toBeVisible();
|
|
2045
|
+
}
|
|
2046
|
+
async deleteTeam(eventName, teamName) {
|
|
2047
|
+
eventName = eventName.replace(/\s+/g, "_").toUpperCase();
|
|
2048
|
+
await this.page.locator(`[data-test="${eventName}"] div.role`).filter({
|
|
2049
|
+
hasText: teamName
|
|
2050
|
+
}).locator("a.tag-close").click();
|
|
2051
|
+
}
|
|
2052
|
+
async expectEditMessageIsVisible(eventName) {
|
|
2053
|
+
eventName = eventName.replace(/\s+/g, "_").toUpperCase();
|
|
2054
|
+
await (0, $hOLA6$expect)(this.page.locator(`[data-test="${eventName}"]`).getByText("Edit Message")).toBeVisible();
|
|
2055
|
+
}
|
|
2056
|
+
async addTeam(eventName, teamName) {
|
|
2057
|
+
eventName = eventName.replace(/\s+/g, "_").toUpperCase();
|
|
2058
|
+
await this.page.locator(`[data-test="${eventName}"]`).getByPlaceholder("Add...").click();
|
|
2059
|
+
await this.page.locator(`[data-test="${eventName}"]`).getByPlaceholder("Add...").fill(teamName);
|
|
2060
|
+
await this.page.locator(`[data-test="${eventName}"]`).getByText(teamName).click();
|
|
2061
|
+
}
|
|
2062
|
+
async clickEditMessage(eventName) {
|
|
2063
|
+
eventName = eventName.replace(/\s+/g, "_").toUpperCase();
|
|
2064
|
+
await this.page.locator(`[data-test="${eventName}"]`).getByText("Edit Message").click();
|
|
2065
|
+
await (0, $hOLA6$expect)(this.page.getByText("Edit message: Active task")).toBeVisible();
|
|
2066
|
+
}
|
|
2067
|
+
async editPriority(eventName, priority) {
|
|
2068
|
+
eventName = eventName.replace(/\s+/g, "_").toUpperCase();
|
|
2069
|
+
await this.page.getByRole("combobox").locator("i").click();
|
|
2070
|
+
await this.page.getByRole("option", {
|
|
2071
|
+
name: priority
|
|
2072
|
+
}).click();
|
|
2073
|
+
await this.page.getByRole("button", {
|
|
2074
|
+
name: "Save"
|
|
2075
|
+
}).click();
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
1983
2082
|
class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1984
2083
|
constructor(page){
|
|
1985
2084
|
super(page);
|
|
@@ -1988,6 +2087,7 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
1988
2087
|
name: " Expand"
|
|
1989
2088
|
});
|
|
1990
2089
|
this.folderGroupsPage = new (0, $27cd192f30944b0c$export$572f40d328c1d028)(page);
|
|
2090
|
+
this.notificationPage = new (0, $7e73332bf754777c$export$32284f8bcf0bc407)(page);
|
|
1991
2091
|
this.patternPage = new (0, $d13e78163af94d50$export$9b9454a7f137e99b)(page);
|
|
1992
2092
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
1993
2093
|
}
|
|
@@ -2018,7 +2118,7 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
2018
2118
|
}
|
|
2019
2119
|
async openFolder(folderName) {
|
|
2020
2120
|
await this.page.getByTitle(folderName).waitFor({
|
|
2021
|
-
timeout:
|
|
2121
|
+
timeout: 1000
|
|
2022
2122
|
});
|
|
2023
2123
|
await this.page.getByTitle(folderName).click();
|
|
2024
2124
|
await (0, $hOLA6$expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
|
|
@@ -2123,6 +2223,10 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
2123
2223
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Deliveries")).toBeVisible();
|
|
2124
2224
|
return this.deliveryPage;
|
|
2125
2225
|
}
|
|
2226
|
+
async openNotifications() {
|
|
2227
|
+
await this.util.openSideNavMenu("Notifications");
|
|
2228
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Notifications")).toBeVisible();
|
|
2229
|
+
}
|
|
2126
2230
|
}
|
|
2127
2231
|
|
|
2128
2232
|
|
|
@@ -2263,9 +2367,143 @@ class $3df1257265fba073$export$74ca1eaaa9a0054 extends (0, $9626bc9256ce31f7$exp
|
|
|
2263
2367
|
|
|
2264
2368
|
|
|
2265
2369
|
|
|
2370
|
+
|
|
2266
2371
|
class $2174535b78371022$export$36d69433c4f81145 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
2267
2372
|
constructor(page){
|
|
2268
2373
|
super(page);
|
|
2374
|
+
this.configureButton = this.page.getByRole("button", {
|
|
2375
|
+
name: "Configure"
|
|
2376
|
+
});
|
|
2377
|
+
this.viewModeButton = this.page.getByRole("button", {
|
|
2378
|
+
name: "back icon Back to view mode"
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
async verifyHomePage() {
|
|
2382
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2383
|
+
name: "Digital.ai Release Home"
|
|
2384
|
+
})).toBeVisible();
|
|
2385
|
+
}
|
|
2386
|
+
async verifyConfigureButton() {
|
|
2387
|
+
await this.configureButton.click();
|
|
2388
|
+
await (0, $hOLA6$expect)(this.viewModeButton).toBeVisible();
|
|
2389
|
+
await this.viewModeButton.click();
|
|
2390
|
+
}
|
|
2391
|
+
async addReleaseTiles() {
|
|
2392
|
+
await this.configureButton.click();
|
|
2393
|
+
await this.page.getByRole("button", {
|
|
2394
|
+
name: "Add tiles"
|
|
2395
|
+
}).click();
|
|
2396
|
+
await this.page.getByPlaceholder("Search...").fill("releases");
|
|
2397
|
+
await this.page.getByPlaceholder("Search...").click();
|
|
2398
|
+
await this.page.getByText("Release tile (Global)").hover();
|
|
2399
|
+
await this.page.locator("xlr-tile-card").filter({
|
|
2400
|
+
hasText: "Release tile (Global) Add See"
|
|
2401
|
+
}).getByRole("button").click();
|
|
2402
|
+
await this.page.getByRole("button", {
|
|
2403
|
+
name: "back icon Back to view mode"
|
|
2404
|
+
}).click();
|
|
2405
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2406
|
+
name: "Releases"
|
|
2407
|
+
}).first()).toBeVisible();
|
|
2408
|
+
}
|
|
2409
|
+
async addWorkflowTiles() {
|
|
2410
|
+
await this.page.getByRole("button", {
|
|
2411
|
+
name: "Add tiles"
|
|
2412
|
+
}).click();
|
|
2413
|
+
await this.page.getByText("Workflow tile (Global)").hover();
|
|
2414
|
+
await this.page.locator("xlr-tile-card").filter({
|
|
2415
|
+
hasText: "Workflow tile (Global) Add"
|
|
2416
|
+
}).getByRole("button").click();
|
|
2417
|
+
await this.page.getByRole("button", {
|
|
2418
|
+
name: "back icon Back to view mode"
|
|
2419
|
+
}).click();
|
|
2420
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2421
|
+
name: "Introducing Workflows"
|
|
2422
|
+
}).first()).toBeVisible();
|
|
2423
|
+
}
|
|
2424
|
+
async addApplicationTiles() {
|
|
2425
|
+
await this.page.getByRole("button", {
|
|
2426
|
+
name: "Add tiles"
|
|
2427
|
+
}).click();
|
|
2428
|
+
await this.page.getByText("Application tile (Global)").hover();
|
|
2429
|
+
await this.page.locator("xlr-tile-card").filter({
|
|
2430
|
+
hasText: "Application tile (Global) Add"
|
|
2431
|
+
}).getByRole("button").click();
|
|
2432
|
+
await this.page.getByRole("button", {
|
|
2433
|
+
name: "back icon Back to view mode"
|
|
2434
|
+
}).click();
|
|
2435
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2436
|
+
name: "Applications"
|
|
2437
|
+
}).first()).toBeVisible();
|
|
2438
|
+
}
|
|
2439
|
+
async addTemplateTiles() {
|
|
2440
|
+
await this.page.getByRole("button", {
|
|
2441
|
+
name: "Add tiles"
|
|
2442
|
+
}).click();
|
|
2443
|
+
await this.page.getByText("Template tile (Global)").hover();
|
|
2444
|
+
await this.page.locator("xlr-tile-card").filter({
|
|
2445
|
+
hasText: "Template tile (Global) Add"
|
|
2446
|
+
}).getByRole("button").click();
|
|
2447
|
+
await this.page.getByRole("button", {
|
|
2448
|
+
name: "back icon Back to view mode"
|
|
2449
|
+
}).click();
|
|
2450
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2451
|
+
name: "Templates"
|
|
2452
|
+
}).first()).toBeVisible();
|
|
2453
|
+
}
|
|
2454
|
+
async addAnnouncementTiles() {
|
|
2455
|
+
await this.page.getByRole("button", {
|
|
2456
|
+
name: "Add tiles"
|
|
2457
|
+
}).click();
|
|
2458
|
+
await this.page.getByText("Announcement tile (Global)").hover();
|
|
2459
|
+
await this.page.locator("xlr-tile-card").filter({
|
|
2460
|
+
hasText: "Announcement tile (Global) Add"
|
|
2461
|
+
}).getByRole("button").click();
|
|
2462
|
+
await this.page.getByRole("button", {
|
|
2463
|
+
name: "back icon Back to view mode"
|
|
2464
|
+
}).click();
|
|
2465
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2466
|
+
name: "Getting started"
|
|
2467
|
+
}).first()).toBeVisible();
|
|
2468
|
+
}
|
|
2469
|
+
async addAnaslyticsTiles() {
|
|
2470
|
+
await this.page.getByRole("button", {
|
|
2471
|
+
name: "Add tiles"
|
|
2472
|
+
}).click();
|
|
2473
|
+
await this.page.getByText("Analytics tile (Global)").hover();
|
|
2474
|
+
await this.page.locator("xlr-tile-card").filter({
|
|
2475
|
+
hasText: "Analytics tile (Global) Add"
|
|
2476
|
+
}).getByRole("button").click();
|
|
2477
|
+
await this.page.getByRole("button", {
|
|
2478
|
+
name: "back icon Back to view mode"
|
|
2479
|
+
}).click();
|
|
2480
|
+
await (0, $hOLA6$expect)(this.page.getByRole("button", {
|
|
2481
|
+
name: "View Analytics"
|
|
2482
|
+
}).nth(1)).toBeVisible();
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Remove the tiles from the home page
|
|
2486
|
+
* @param tileName name of the tile to be removed
|
|
2487
|
+
* tileName TileName should be "Releases", "Workflows", "Applications", "Templates", "Announcements", "Analytics"
|
|
2488
|
+
*/ async removeTiles(tileName) {
|
|
2489
|
+
await this.configureButton.click();
|
|
2490
|
+
await this.page.locator('.xlr-tile-container[data-title="' + tileName + '"]').last().hover();
|
|
2491
|
+
await this.page.locator('[data-title="' + tileName + '"] .delete-icon').last().click();
|
|
2492
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2493
|
+
name: "Delete tile"
|
|
2494
|
+
})).toBeVisible();
|
|
2495
|
+
await this.page.getByRole("button", {
|
|
2496
|
+
name: "Delete"
|
|
2497
|
+
}).click();
|
|
2498
|
+
await this.viewModeButton.click();
|
|
2499
|
+
}
|
|
2500
|
+
async verifyWhatsNewButton() {
|
|
2501
|
+
await this.page.getByText(`What's new`).waitFor({
|
|
2502
|
+
state: "visible"
|
|
2503
|
+
});
|
|
2504
|
+
await this.page.getByText(`What's new`).click();
|
|
2505
|
+
await (0, $hOLA6$expect)(this.page.getByText("Introducing Analytics")).toBeVisible();
|
|
2506
|
+
await this.page.getByLabel("Close").click();
|
|
2269
2507
|
}
|
|
2270
2508
|
}
|
|
2271
2509
|
|
|
@@ -2346,7 +2584,7 @@ class $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a extends (0, $9626bc9256ce31f7$ex
|
|
|
2346
2584
|
}).click();
|
|
2347
2585
|
}
|
|
2348
2586
|
async verifyUser(userFullName) {
|
|
2349
|
-
await this.page.
|
|
2587
|
+
await this.page.locator("li").getByLabel(userFullName).click();
|
|
2350
2588
|
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2351
2589
|
name: "Personal settings for admin"
|
|
2352
2590
|
})).toBeVisible();
|
|
@@ -2591,6 +2829,50 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
2591
2829
|
|
|
2592
2830
|
|
|
2593
2831
|
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
class $2c7e9876d54521fb$export$5628dfd1b9e94785 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
2835
|
+
constructor(page){
|
|
2836
|
+
super(page);
|
|
2837
|
+
}
|
|
2838
|
+
async installReleaseRunner(headingName) {
|
|
2839
|
+
await this.page.locator(".workflow-card").filter({
|
|
2840
|
+
hasText: headingName
|
|
2841
|
+
}).getByTestId("dot-button").click();
|
|
2842
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2843
|
+
name: "Choose folder"
|
|
2844
|
+
})).toBeVisible();
|
|
2845
|
+
await this.page.locator(".xl__dropdown-indicator-container").click();
|
|
2846
|
+
await this.page.getByText("Samples & Tutorials").click();
|
|
2847
|
+
await this.page.getByRole("button", {
|
|
2848
|
+
name: "Run workflow"
|
|
2849
|
+
}).click();
|
|
2850
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Install additional Digital.ai")).toBeVisible();
|
|
2851
|
+
await this.page.getByRole("heading", {
|
|
2852
|
+
name: "Prepare Digital.ai Release URL"
|
|
2853
|
+
}).waitFor();
|
|
2854
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2855
|
+
name: "Prepare Digital.ai Release URL"
|
|
2856
|
+
})).toBeVisible();
|
|
2857
|
+
await this.page.getByRole("heading", {
|
|
2858
|
+
name: "Digital.ai Release URL"
|
|
2859
|
+
}).nth(2).waitFor();
|
|
2860
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2861
|
+
name: "Digital.ai Release URL"
|
|
2862
|
+
}).nth(2)).toBeVisible();
|
|
2863
|
+
}
|
|
2864
|
+
async abortInstallation() {
|
|
2865
|
+
await this.page.getByRole("button", {
|
|
2866
|
+
name: "Abort"
|
|
2867
|
+
}).click();
|
|
2868
|
+
await this.page.getByRole("button", {
|
|
2869
|
+
name: "cancel icon Abort"
|
|
2870
|
+
}).click();
|
|
2871
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Install additional Digital.ai")).not.toBeVisible();
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
|
|
2594
2876
|
class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
2595
2877
|
constructor(page){
|
|
2596
2878
|
super(page);
|
|
@@ -2603,6 +2885,19 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
|
|
|
2603
2885
|
this.managePluginMenu = this.page.getByRole("menuitem", {
|
|
2604
2886
|
name: "plugins icon Manage plugins"
|
|
2605
2887
|
});
|
|
2888
|
+
this.systemSettingsMenu = this.page.getByRole("menuitem", {
|
|
2889
|
+
name: "System settings"
|
|
2890
|
+
});
|
|
2891
|
+
this.runnerMenu = this.page.getByText("Runners");
|
|
2892
|
+
this.configureSystemMessageMenu = this.page.getByText("Configure system message");
|
|
2893
|
+
this.taskManagerMenu = this.page.getByText("Task manager");
|
|
2894
|
+
this.viewSystemInfoMenu = this.page.getByText("View system information");
|
|
2895
|
+
this.getDataSupportMenu = this.page.getByText("Get data for support");
|
|
2896
|
+
this.renewLicenseMenu = this.page.getByText("Renew license");
|
|
2897
|
+
this.aboutMenu = this.page.getByText("About Digital.ai Release");
|
|
2898
|
+
this.closeIcon = this.page.locator(".xl-icon.close-icon");
|
|
2899
|
+
this.installRunnerButton = this.page.getByTestId("create-btn");
|
|
2900
|
+
this.workflowCatalogPage = new (0, $2c7e9876d54521fb$export$5628dfd1b9e94785)(page);
|
|
2606
2901
|
}
|
|
2607
2902
|
async openUsersAndPermissions() {
|
|
2608
2903
|
await this.settingsIcon.click();
|
|
@@ -2613,6 +2908,105 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
|
|
|
2613
2908
|
await this.managePluginMenu.click();
|
|
2614
2909
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Plugin gallery")).toBeVisible();
|
|
2615
2910
|
}
|
|
2911
|
+
async openSystemSettings() {
|
|
2912
|
+
await this.settingsIcon.click();
|
|
2913
|
+
await this.systemSettingsMenu.click();
|
|
2914
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("System settings")).toBeVisible();
|
|
2915
|
+
}
|
|
2916
|
+
async openRunner() {
|
|
2917
|
+
await this.settingsIcon.click();
|
|
2918
|
+
await this.runnerMenu.click();
|
|
2919
|
+
await (0, $hOLA6$expect)(this.page.getByRole("link", {
|
|
2920
|
+
name: "Runners"
|
|
2921
|
+
})).toBeVisible();
|
|
2922
|
+
}
|
|
2923
|
+
async openConfigureSystemMessage() {
|
|
2924
|
+
await this.settingsIcon.click();
|
|
2925
|
+
await this.configureSystemMessageMenu.click();
|
|
2926
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2927
|
+
name: "System message"
|
|
2928
|
+
})).toBeVisible();
|
|
2929
|
+
await this.closeIcon.click();
|
|
2930
|
+
}
|
|
2931
|
+
async configureSystemMessage(message) {
|
|
2932
|
+
await this.settingsIcon.click();
|
|
2933
|
+
await this.configureSystemMessageMenu.click();
|
|
2934
|
+
await this.page.getByLabel("Enable system message").check();
|
|
2935
|
+
await this.page.getByLabel("Type here...").locator("div").nth(2).click();
|
|
2936
|
+
await this.page.getByLabel("Type here...").fill(message);
|
|
2937
|
+
await this.page.getByRole("button", {
|
|
2938
|
+
name: "Save"
|
|
2939
|
+
}).click();
|
|
2940
|
+
await (0, $hOLA6$expect)(this.page.locator("system-message")).toContainText(message);
|
|
2941
|
+
}
|
|
2942
|
+
async disableSystemMessage() {
|
|
2943
|
+
await this.settingsIcon.click();
|
|
2944
|
+
await this.configureSystemMessageMenu.click();
|
|
2945
|
+
await this.page.getByLabel("Enable system message").uncheck();
|
|
2946
|
+
await this.page.getByRole("button", {
|
|
2947
|
+
name: "Save"
|
|
2948
|
+
}).click();
|
|
2949
|
+
await (0, $hOLA6$expect)(this.page.getByRole("alert")).not.toBeVisible();
|
|
2950
|
+
}
|
|
2951
|
+
async openTaskManager() {
|
|
2952
|
+
await this.settingsIcon.click();
|
|
2953
|
+
await this.taskManagerMenu.click();
|
|
2954
|
+
await (0, $hOLA6$expect)(this.page.getByRole("link", {
|
|
2955
|
+
name: "Task manager"
|
|
2956
|
+
})).toBeVisible();
|
|
2957
|
+
}
|
|
2958
|
+
async openViewSystemInformation() {
|
|
2959
|
+
const versionNumber = await this.getVersionNumber();
|
|
2960
|
+
await this.settingsIcon.click();
|
|
2961
|
+
await this.viewSystemInfoMenu.click();
|
|
2962
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2963
|
+
name: "Release system information"
|
|
2964
|
+
})).toBeVisible();
|
|
2965
|
+
await (0, $hOLA6$expect)(this.page.getByRole("rowgroup")).toContainText(versionNumber);
|
|
2966
|
+
}
|
|
2967
|
+
async openGetDataForSupport() {
|
|
2968
|
+
await this.settingsIcon.click();
|
|
2969
|
+
await this.getDataSupportMenu.click();
|
|
2970
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
2971
|
+
name: "Get data for support"
|
|
2972
|
+
})).toBeVisible();
|
|
2973
|
+
await (0, $hOLA6$expect)(this.page.locator("support-accelerator-modal")).toContainText("See https://support.digital.ai for more information or to open a support request.");
|
|
2974
|
+
}
|
|
2975
|
+
async downloadSupportData() {
|
|
2976
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2977
|
+
this.page.on("download", ()=>{});
|
|
2978
|
+
const downloadPromise = this.page.waitForEvent("download");
|
|
2979
|
+
await this.page.getByRole("button", {
|
|
2980
|
+
name: "Download"
|
|
2981
|
+
}).click();
|
|
2982
|
+
await downloadPromise;
|
|
2983
|
+
}
|
|
2984
|
+
async openRenewLicense() {
|
|
2985
|
+
await this.settingsIcon.click();
|
|
2986
|
+
const page1Promise = this.page.waitForEvent("popup");
|
|
2987
|
+
await this.page.getByText("Renew license").click();
|
|
2988
|
+
const page1 = await page1Promise;
|
|
2989
|
+
(0, $hOLA6$expect)(page1.url()).toContain("/productregistration");
|
|
2990
|
+
await (0, $hOLA6$expect)(page1.getByRole("button", {
|
|
2991
|
+
name: "Install license"
|
|
2992
|
+
})).toBeVisible();
|
|
2993
|
+
await this.page.bringToFront();
|
|
2994
|
+
}
|
|
2995
|
+
async getVersionNumber() {
|
|
2996
|
+
await this.settingsIcon.click();
|
|
2997
|
+
await this.aboutMenu.click();
|
|
2998
|
+
const versionNumber = await this.page.locator(".version-text").innerText();
|
|
2999
|
+
await this.closeIcon.click();
|
|
3000
|
+
return versionNumber;
|
|
3001
|
+
}
|
|
3002
|
+
async openAbout() {
|
|
3003
|
+
await this.settingsIcon.click();
|
|
3004
|
+
await this.aboutMenu.click();
|
|
3005
|
+
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
3006
|
+
name: "About"
|
|
3007
|
+
})).toBeVisible();
|
|
3008
|
+
await this.closeIcon.click();
|
|
3009
|
+
}
|
|
2616
3010
|
}
|
|
2617
3011
|
|
|
2618
3012
|
|
|
@@ -3707,6 +4101,181 @@ class $171d52b372748c0b$export$7e1d435fa474ee21 extends (0, $9626bc9256ce31f7$ex
|
|
|
3707
4101
|
|
|
3708
4102
|
|
|
3709
4103
|
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
class $dc3f86da33696c85$export$97f7a3219fa8d586 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
4109
|
+
constructor(page){
|
|
4110
|
+
super(page);
|
|
4111
|
+
this.roleName = page.locator("Role name *");
|
|
4112
|
+
this.newRoleName = page.locator("Role name *");
|
|
4113
|
+
this.addPrincipal = page.locator("Add a principal...");
|
|
4114
|
+
this.saveButton = page.getByRole("button", {
|
|
4115
|
+
name: "Save"
|
|
4116
|
+
});
|
|
4117
|
+
this.editIcon = page.getByRole("row", {
|
|
4118
|
+
name: ""
|
|
4119
|
+
}).getByLabel("Edit", {
|
|
4120
|
+
exact: true
|
|
4121
|
+
});
|
|
4122
|
+
this.deleteButton = page.getByRole("button", {
|
|
4123
|
+
name: "Delete"
|
|
4124
|
+
});
|
|
4125
|
+
this.searchRoles = page.getByPlaceholder("Search roles...");
|
|
4126
|
+
}
|
|
4127
|
+
async setRoleName(roleName) {
|
|
4128
|
+
return await this.page.getByLabel("Role name *").fill(roleName, {
|
|
4129
|
+
timeout: 1000
|
|
4130
|
+
});
|
|
4131
|
+
}
|
|
4132
|
+
async editRoleName(newRoleName) {
|
|
4133
|
+
return await this.page.getByLabel("Role name *").fill(newRoleName, {
|
|
4134
|
+
timeout: 1000
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
async setPrincipal(addPrincipal) {
|
|
4138
|
+
await this.page.getByPlaceholder("Add a principal...").fill(addPrincipal, {
|
|
4139
|
+
timeout: 1000
|
|
4140
|
+
});
|
|
4141
|
+
}
|
|
4142
|
+
async searchRoleByRoleName(searchRoles) {
|
|
4143
|
+
await this.page.getByPlaceholder("Search roles...").fill(searchRoles, {
|
|
4144
|
+
timeout: 1000
|
|
4145
|
+
});
|
|
4146
|
+
}
|
|
4147
|
+
async save() {
|
|
4148
|
+
await this.saveButton.isEnabled();
|
|
4149
|
+
await (0, $hOLA6$expect)(this.saveButton).not.toBeDisabled();
|
|
4150
|
+
await this.saveButton.focus();
|
|
4151
|
+
await this.saveButton.click();
|
|
4152
|
+
}
|
|
4153
|
+
async delete() {
|
|
4154
|
+
await this.deleteButton.click();
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
class $208f399edeb35aa2$export$7a5b979a220f477c extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
4160
|
+
constructor(page){
|
|
4161
|
+
super(page);
|
|
4162
|
+
this.page = page;
|
|
4163
|
+
this.newRoleButton = this.page.getByTestId("new-role-btn");
|
|
4164
|
+
this.modal = new (0, $dc3f86da33696c85$export$97f7a3219fa8d586)(page);
|
|
4165
|
+
}
|
|
4166
|
+
async createRole(roleName, addPrincipal) {
|
|
4167
|
+
await this.newRoleButton.click();
|
|
4168
|
+
await this.modal.setRoleName(roleName);
|
|
4169
|
+
await this.modal.setPrincipal(addPrincipal);
|
|
4170
|
+
await this.modal.save();
|
|
4171
|
+
await this.expectToViewCreatedRole(roleName);
|
|
4172
|
+
}
|
|
4173
|
+
async editRole(roleName, newRoleName) {
|
|
4174
|
+
await this.page.getByRole("row", {
|
|
4175
|
+
name: roleName
|
|
4176
|
+
}).getByLabel("Edit", {
|
|
4177
|
+
exact: true
|
|
4178
|
+
}).click();
|
|
4179
|
+
await this.modal.editRoleName(newRoleName);
|
|
4180
|
+
await this.modal.save();
|
|
4181
|
+
}
|
|
4182
|
+
async searchRoleByRoleName(searchRoles) {
|
|
4183
|
+
await this.page.getByPlaceholder("Search roles...").fill(searchRoles, {
|
|
4184
|
+
timeout: 1000
|
|
4185
|
+
});
|
|
4186
|
+
}
|
|
4187
|
+
async searchRoleByAssignedUsername(searchRolesByUsername) {
|
|
4188
|
+
await this.page.getByPlaceholder("Search assigned usernames or external groups...").fill(searchRolesByUsername, {
|
|
4189
|
+
timeout: 1000
|
|
4190
|
+
});
|
|
4191
|
+
}
|
|
4192
|
+
async deleteRole(roleName) {
|
|
4193
|
+
await this.page.getByRole("row", {
|
|
4194
|
+
name: roleName
|
|
4195
|
+
}).getByLabel("Delete", {
|
|
4196
|
+
exact: true
|
|
4197
|
+
}).click();
|
|
4198
|
+
await this.modal.delete();
|
|
4199
|
+
}
|
|
4200
|
+
async expectToViewRolesPage() {
|
|
4201
|
+
await (0, $hOLA6$expect)(this.page.locator("text=Principals")).toBeVisible();
|
|
4202
|
+
}
|
|
4203
|
+
async expectToViewCreatedRole(roleName) {
|
|
4204
|
+
await (0, $hOLA6$expect)(this.page.getByRole("cell", {
|
|
4205
|
+
name: roleName
|
|
4206
|
+
})).toBeVisible();
|
|
4207
|
+
}
|
|
4208
|
+
async expectToViewEditedRole(roleName) {
|
|
4209
|
+
await (0, $hOLA6$expect)(this.page.getByRole("cell", {
|
|
4210
|
+
name: roleName
|
|
4211
|
+
})).toBeVisible();
|
|
4212
|
+
}
|
|
4213
|
+
async expectRoleToBeDeleted(roleName) {
|
|
4214
|
+
await (0, $hOLA6$expect)(this.page.getByRole("cell", {
|
|
4215
|
+
name: roleName
|
|
4216
|
+
})).toBeHidden();
|
|
4217
|
+
}
|
|
4218
|
+
async expectToViewSearchedRole(roleName) {
|
|
4219
|
+
await (0, $hOLA6$expect)(this.page.locator("roles-page")).toContainText(roleName);
|
|
4220
|
+
}
|
|
4221
|
+
async expectToViewSearchedRoleByUsername(userName) {
|
|
4222
|
+
await (0, $hOLA6$expect)(this.page.locator("roles-page")).toContainText(userName);
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
|
|
4230
|
+
|
|
4231
|
+
class $2cbb78eec86d0a9f$export$2edf430132ca35d0 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
4232
|
+
constructor(page){
|
|
4233
|
+
super(page);
|
|
4234
|
+
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
4235
|
+
}
|
|
4236
|
+
async openGeneralSettings() {
|
|
4237
|
+
await this.util.openSideNavMenu("General");
|
|
4238
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("General")).toBeVisible();
|
|
4239
|
+
}
|
|
4240
|
+
async openReleasesAndTriggers() {
|
|
4241
|
+
await this.util.openSideNavMenu("Releases and Triggers");
|
|
4242
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Releases and Triggers")).toBeVisible();
|
|
4243
|
+
}
|
|
4244
|
+
async openTasks() {
|
|
4245
|
+
await this.util.openSideNavMenu("Tasks");
|
|
4246
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Tasks")).toBeVisible();
|
|
4247
|
+
}
|
|
4248
|
+
async openReports() {
|
|
4249
|
+
await this.util.openSideNavMenu("Reports");
|
|
4250
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Reports")).toBeVisible();
|
|
4251
|
+
}
|
|
4252
|
+
async openAdvanced() {
|
|
4253
|
+
await this.util.openSideNavMenu("Advanced");
|
|
4254
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Advanced")).toBeVisible();
|
|
4255
|
+
}
|
|
4256
|
+
async openExperimental() {
|
|
4257
|
+
await this.util.openSideNavMenu("Experimental");
|
|
4258
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Experimental")).toBeVisible();
|
|
4259
|
+
}
|
|
4260
|
+
async openNotifications() {
|
|
4261
|
+
await this.util.openSideNavMenu("Notifications");
|
|
4262
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Notifications")).toBeVisible();
|
|
4263
|
+
}
|
|
4264
|
+
async openRiskProfiles() {
|
|
4265
|
+
await this.util.openSideNavMenu("Risk profiles");
|
|
4266
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Risk profiles")).toBeVisible();
|
|
4267
|
+
}
|
|
4268
|
+
async openWorkflowCategories() {
|
|
4269
|
+
await this.util.openSideNavMenu("Workflow categories");
|
|
4270
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Workflow categories")).toBeVisible();
|
|
4271
|
+
}
|
|
4272
|
+
async openSMTPServer() {
|
|
4273
|
+
await this.util.openSideNavMenu("SMTP server");
|
|
4274
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("SMTP server")).toBeVisible();
|
|
4275
|
+
}
|
|
4276
|
+
}
|
|
4277
|
+
|
|
4278
|
+
|
|
3710
4279
|
class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
3711
4280
|
constructor(page){
|
|
3712
4281
|
this.page = page;
|
|
@@ -3719,6 +4288,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
3719
4288
|
this.managePluginsPage = new (0, $ecd0868a4240184d$export$7b434e00c788d0bf)(page);
|
|
3720
4289
|
this.releasePage = new (0, $43cbcdfccb6c2a76$export$f43492e8ac3c566)(page);
|
|
3721
4290
|
this.settingsMenu = new (0, $f1bf370bb7f683ca$export$1d7840d5cdc861d5)(page);
|
|
4291
|
+
this.systemSettingsPage = new (0, $2cbb78eec86d0a9f$export$2edf430132ca35d0)(page);
|
|
3722
4292
|
this.usersPage = new (0, $2cb6a6ac6b17e85f$export$107317390f5aa598)(page);
|
|
3723
4293
|
this.applicationPage = new (0, $c313b10398604df2$export$1533b625ec0c75e2)(page);
|
|
3724
4294
|
this.taskDetailsPage = new (0, $9ca6e63d357957dd$export$922081b54f2ab994)(page);
|
|
@@ -3730,7 +4300,9 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
3730
4300
|
this.releaseGroupPage = new (0, $cc2d15e53de5cef7$export$b6fbc3e67030138f)(page);
|
|
3731
4301
|
this.releaseGroupTimelinePage = new (0, $cc231ea61b77c7a2$export$1a0994e9c202d529)(page);
|
|
3732
4302
|
this.releaseListPage = new (0, $5359280e98d97ff9$export$a678525e79c4ccc4)(page);
|
|
4303
|
+
this.rolesPage = new (0, $208f399edeb35aa2$export$7a5b979a220f477c)(page);
|
|
3733
4304
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
4305
|
+
this.workflowCatalogPage = new (0, $2c7e9876d54521fb$export$5628dfd1b9e94785)(page);
|
|
3734
4306
|
}
|
|
3735
4307
|
async openTemplate(id) {
|
|
3736
4308
|
return this.openReleaseOrTemplate(id, false);
|
|
@@ -4087,17 +4659,41 @@ class $80c3ae34677b4324$var$Fixtures {
|
|
|
4087
4659
|
getParentId(id) {
|
|
4088
4660
|
return id.substring(0, id.lastIndexOf("/"));
|
|
4089
4661
|
}
|
|
4662
|
+
addSystemTeams(teams) {
|
|
4663
|
+
const systemTeams = [
|
|
4664
|
+
"Folder Owner",
|
|
4665
|
+
"Release Admin",
|
|
4666
|
+
"Template Owner"
|
|
4667
|
+
];
|
|
4668
|
+
const teamsToUpdate = teams.map((team)=>team.teamName);
|
|
4669
|
+
systemTeams.forEach((teamName)=>{
|
|
4670
|
+
if (teamsToUpdate.indexOf(teamName) === -1) teams.push({
|
|
4671
|
+
type: "xlrelease.Team",
|
|
4672
|
+
teamName: teamName,
|
|
4673
|
+
members: [],
|
|
4674
|
+
permissions: []
|
|
4675
|
+
});
|
|
4676
|
+
});
|
|
4677
|
+
return teams;
|
|
4678
|
+
}
|
|
4090
4679
|
async folder(folder) {
|
|
4091
4680
|
const parentId = this.getParentId(folder.id);
|
|
4092
4681
|
folder.type = "xlrelease.Folder";
|
|
4093
|
-
|
|
4094
|
-
const teams = folder.teams;
|
|
4682
|
+
let teams = folder.teams;
|
|
4095
4683
|
delete folder.teams;
|
|
4096
4684
|
//ToDo: Add Children
|
|
4097
4685
|
/* eslint-disable @typescript-eslint/no-unused-vars */ const children = folder.children || [];
|
|
4098
4686
|
delete folder.children;
|
|
4099
|
-
|
|
4100
|
-
|
|
4687
|
+
const response = await this.doPost(`api/v1/folders/${parentId}`, folder);
|
|
4688
|
+
// Add the folder ID to the list
|
|
4689
|
+
this.folderIds.push(folder.id);
|
|
4690
|
+
// If teams are provided, send a request to add teams to the folder
|
|
4691
|
+
if (teams) {
|
|
4692
|
+
teams = this.addSystemTeams(teams);
|
|
4693
|
+
const newresponse = await this.doPost(`api/v1/folders/${folder.id}/teams`, teams);
|
|
4694
|
+
return newresponse;
|
|
4695
|
+
}
|
|
4696
|
+
return response;
|
|
4101
4697
|
}
|
|
4102
4698
|
createFolder(folderJson) {
|
|
4103
4699
|
folderJson.type = "xlrelease.Folder";
|