@digital-ai/devops-page-object-release 0.0.54 → 0.0.56
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 +13 -0
- package/dist/main.js +54 -15
- package/dist/main.js.map +1 -1
- package/dist/module.js +54 -15
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +8 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 0.0.56
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9617f6a: D-39595: Update scheduling rail with checks for start date alert banner
|
|
8
|
+
- 84b133b: S-119909: templatePage updated for template-gantt-scenario
|
|
9
|
+
|
|
10
|
+
## 0.0.55
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 2052a7a: S-119890 Changes for copy and paste task
|
|
15
|
+
|
|
3
16
|
## 0.0.54
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -2777,7 +2777,20 @@ class $1fbdec5dc9cde599$export$e3515314c13bc477 extends (0, $f8721861c660dd88$ex
|
|
|
2777
2777
|
async expectStartDateToBe(date) {
|
|
2778
2778
|
(0, $kKeXs$playwrighttest.expect)(await this.page.locator(".flex-section.column").filter({
|
|
2779
2779
|
hasText: "Start Date"
|
|
2780
|
-
}).locator(".task-date-view-content").getAttribute("aria-label")).toContain(date);
|
|
2780
|
+
}).locator(".task-date-view-content .dot-avatar").getAttribute("aria-label")).toContain(date);
|
|
2781
|
+
}
|
|
2782
|
+
async expectStartDateWarningBannerToNotBePresent() {
|
|
2783
|
+
const alertBanner = this.page.locator(".dot-alert-banner");
|
|
2784
|
+
await (0, $kKeXs$playwrighttest.expect)(alertBanner).not.toBeVisible();
|
|
2785
|
+
}
|
|
2786
|
+
async expectStartDateWarningBanner(text, originalScheduledStartDate) {
|
|
2787
|
+
const alertBanner = this.page.locator(".dot-alert-banner");
|
|
2788
|
+
await (0, $kKeXs$playwrighttest.expect)(alertBanner).toBeVisible();
|
|
2789
|
+
await (0, $kKeXs$playwrighttest.expect)(alertBanner).toContainText(text);
|
|
2790
|
+
if (originalScheduledStartDate) {
|
|
2791
|
+
const originalScheduledStartDateText = await this.page.locator('.dot-alert-banner p[data-testid="original-scheduled-start-date"] span').textContent();
|
|
2792
|
+
if (originalScheduledStartDateText) (0, $kKeXs$playwrighttest.expect)((0, ($parcel$interopDefault($kKeXs$moment)))(new Date(originalScheduledStartDateText)).format("YYYY-MM-DDTHH:mm")).toBe((0, ($parcel$interopDefault($kKeXs$moment)))(new Date(originalScheduledStartDate)).format("YYYY-MM-DDTHH:mm"));
|
|
2793
|
+
}
|
|
2781
2794
|
}
|
|
2782
2795
|
async expectEndDateToBeDisplayed() {
|
|
2783
2796
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".flex-section.column").filter({
|
|
@@ -4440,39 +4453,62 @@ class $9b9a8c3da392d020$var$Phase extends (0, $f8721861c660dd88$export$2b65d1d97
|
|
|
4440
4453
|
}
|
|
4441
4454
|
async isMenuItemEnabled(menuName, taskTitle, group = false) {
|
|
4442
4455
|
await this.openContextMenuForTask(taskTitle, group);
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4456
|
+
const menuItem = this.contextMenuButton.filter({
|
|
4457
|
+
has: this.page.locator("a").getByText(menuName, {
|
|
4458
|
+
exact: true
|
|
4459
|
+
})
|
|
4460
|
+
});
|
|
4461
|
+
await (0, $kKeXs$playwrighttest.expect)(menuItem).not.toHaveClass(/disabled/);
|
|
4449
4462
|
await this.closeContextMenu();
|
|
4450
4463
|
}
|
|
4451
4464
|
async isMenuItemDisabled(menuName, taskTitle, group = false) {
|
|
4452
4465
|
await this.openContextMenuForTask(taskTitle, group);
|
|
4453
4466
|
const menuItem = this.contextMenuButton.filter({
|
|
4454
|
-
|
|
4467
|
+
has: this.page.locator("a").getByText(menuName, {
|
|
4468
|
+
exact: true
|
|
4469
|
+
})
|
|
4455
4470
|
});
|
|
4456
4471
|
await (0, $kKeXs$playwrighttest.expect)(menuItem).toHaveClass(/disabled/);
|
|
4457
|
-
const anchorTag = menuItem.locator("a");
|
|
4458
|
-
const disabledAttribute = await anchorTag.getAttribute("disabled");
|
|
4459
|
-
(0, $kKeXs$playwrighttest.expect)(disabledAttribute).not.toBeNull();
|
|
4460
4472
|
await this.closeContextMenu();
|
|
4461
4473
|
}
|
|
4462
4474
|
async expectMenuItemIsNotVisible(menuName, taskTitle) {
|
|
4463
4475
|
await this.openContextMenuForTask(taskTitle);
|
|
4464
|
-
await (0, $kKeXs$playwrighttest.expect)(this.
|
|
4465
|
-
|
|
4476
|
+
await (0, $kKeXs$playwrighttest.expect)(this.contextMenuButton.getByText(menuName, {
|
|
4477
|
+
exact: true
|
|
4466
4478
|
})).not.toBeVisible();
|
|
4467
4479
|
await this.closeContextMenu();
|
|
4468
4480
|
}
|
|
4469
4481
|
async expectMenuItemIsVisible(menuName, taskTitle) {
|
|
4470
4482
|
await this.openContextMenuForTask(taskTitle);
|
|
4471
|
-
await (0, $kKeXs$playwrighttest.expect)(this.
|
|
4472
|
-
|
|
4483
|
+
await (0, $kKeXs$playwrighttest.expect)(this.contextMenuButton.getByText(menuName, {
|
|
4484
|
+
exact: true
|
|
4485
|
+
})).toBeVisible();
|
|
4486
|
+
await this.closeContextMenu();
|
|
4487
|
+
}
|
|
4488
|
+
async expectSubmenuItemIsVisible(parentMenuItem, menuName, taskTitle) {
|
|
4489
|
+
await this.openContextMenuForTask(taskTitle);
|
|
4490
|
+
await this.contextMenuButton.getByText(parentMenuItem, {
|
|
4491
|
+
exact: true
|
|
4492
|
+
}).hover();
|
|
4493
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#context-menu-container ul[data-id="${parentMenuItem}"] li`).getByText(menuName, {
|
|
4494
|
+
exact: true
|
|
4473
4495
|
})).toBeVisible();
|
|
4474
4496
|
await this.closeContextMenu();
|
|
4475
4497
|
}
|
|
4498
|
+
async clickSubmenuItemForTask(parentMenuItem, menuName, taskTitle) {
|
|
4499
|
+
await this.openContextMenuForTask(taskTitle);
|
|
4500
|
+
await this.contextMenuButton.getByText(parentMenuItem, {
|
|
4501
|
+
exact: true
|
|
4502
|
+
}).hover();
|
|
4503
|
+
await this.page.locator(`#context-menu-container ul[data-id="${parentMenuItem}"] li a`).getByText(menuName, {
|
|
4504
|
+
exact: true
|
|
4505
|
+
}).click();
|
|
4506
|
+
}
|
|
4507
|
+
async expectSnackbarSuccessMessage(message) {
|
|
4508
|
+
const snackbar = this.page.locator('.dot-snackbar[severity="success"]');
|
|
4509
|
+
await (0, $kKeXs$playwrighttest.expect)(snackbar.locator("p")).toHaveText(message);
|
|
4510
|
+
await snackbar.getByRole("button").click();
|
|
4511
|
+
}
|
|
4476
4512
|
async closeContextMenu() {
|
|
4477
4513
|
await this.page.locator("#release-header").click();
|
|
4478
4514
|
}
|
|
@@ -7548,6 +7584,7 @@ class $170d32617f3aa58e$var$TemplateVariableModal extends (0, $f8721861c660dd88$
|
|
|
7548
7584
|
|
|
7549
7585
|
|
|
7550
7586
|
|
|
7587
|
+
|
|
7551
7588
|
class $959d38250779aa22$export$8c8e7207254accc2 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
7552
7589
|
constructor(page){
|
|
7553
7590
|
super(page);
|
|
@@ -7558,6 +7595,7 @@ class $959d38250779aa22$export$8c8e7207254accc2 extends (0, $f8721861c660dd88$ex
|
|
|
7558
7595
|
this.triggers = new (0, $b12db2561a3bf785$export$899a7095bab1879d)(page);
|
|
7559
7596
|
this.util = new (0, $2c89ba54932fbba8$export$f8f26dd395d7e1bd)(page);
|
|
7560
7597
|
this.variables = new (0, $170d32617f3aa58e$export$e0f84914460c3382)(page);
|
|
7598
|
+
this.plannerView = new (0, $e8395395d01b66bb$export$5a82be0a2a261cc6)(page);
|
|
7561
7599
|
}
|
|
7562
7600
|
async openTemplateMenu(menuItem) {
|
|
7563
7601
|
await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
|
|
@@ -7641,6 +7679,7 @@ class $959d38250779aa22$export$8c8e7207254accc2 extends (0, $f8721861c660dd88$ex
|
|
|
7641
7679
|
async openPlannerView() {
|
|
7642
7680
|
await this.util.openSideNavMenu("Planner");
|
|
7643
7681
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".gantt-container")).toBeVisible();
|
|
7682
|
+
return this.plannerView;
|
|
7644
7683
|
}
|
|
7645
7684
|
async openCodeView() {
|
|
7646
7685
|
await this.util.openSideNavMenu("Code");
|