@digital-ai/devops-page-object-release 0.0.55 → 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 +7 -0
- package/dist/main.js +17 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +17 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -1841,7 +1841,20 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1841
1841
|
async expectStartDateToBe(date) {
|
|
1842
1842
|
(0, $hOLA6$expect)(await this.page.locator(".flex-section.column").filter({
|
|
1843
1843
|
hasText: "Start Date"
|
|
1844
|
-
}).locator(".task-date-view-content").getAttribute("aria-label")).toContain(date);
|
|
1844
|
+
}).locator(".task-date-view-content .dot-avatar").getAttribute("aria-label")).toContain(date);
|
|
1845
|
+
}
|
|
1846
|
+
async expectStartDateWarningBannerToNotBePresent() {
|
|
1847
|
+
const alertBanner = this.page.locator(".dot-alert-banner");
|
|
1848
|
+
await (0, $hOLA6$expect)(alertBanner).not.toBeVisible();
|
|
1849
|
+
}
|
|
1850
|
+
async expectStartDateWarningBanner(text, originalScheduledStartDate) {
|
|
1851
|
+
const alertBanner = this.page.locator(".dot-alert-banner");
|
|
1852
|
+
await (0, $hOLA6$expect)(alertBanner).toBeVisible();
|
|
1853
|
+
await (0, $hOLA6$expect)(alertBanner).toContainText(text);
|
|
1854
|
+
if (originalScheduledStartDate) {
|
|
1855
|
+
const originalScheduledStartDateText = await this.page.locator('.dot-alert-banner p[data-testid="original-scheduled-start-date"] span').textContent();
|
|
1856
|
+
if (originalScheduledStartDateText) (0, $hOLA6$expect)((0, $hOLA6$moment)(new Date(originalScheduledStartDateText)).format("YYYY-MM-DDTHH:mm")).toBe((0, $hOLA6$moment)(new Date(originalScheduledStartDate)).format("YYYY-MM-DDTHH:mm"));
|
|
1857
|
+
}
|
|
1845
1858
|
}
|
|
1846
1859
|
async expectEndDateToBeDisplayed() {
|
|
1847
1860
|
await (0, $hOLA6$expect)(this.page.locator(".flex-section.column").filter({
|
|
@@ -6635,6 +6648,7 @@ class $527f56b2e41ad18d$var$TemplateVariableModal extends (0, $9626bc9256ce31f7$
|
|
|
6635
6648
|
|
|
6636
6649
|
|
|
6637
6650
|
|
|
6651
|
+
|
|
6638
6652
|
class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
6639
6653
|
constructor(page){
|
|
6640
6654
|
super(page);
|
|
@@ -6645,6 +6659,7 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
6645
6659
|
this.triggers = new (0, $8f36d138075416d2$export$899a7095bab1879d)(page);
|
|
6646
6660
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
6647
6661
|
this.variables = new (0, $527f56b2e41ad18d$export$e0f84914460c3382)(page);
|
|
6662
|
+
this.plannerView = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
|
|
6648
6663
|
}
|
|
6649
6664
|
async openTemplateMenu(menuItem) {
|
|
6650
6665
|
await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
|
|
@@ -6728,6 +6743,7 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
6728
6743
|
async openPlannerView() {
|
|
6729
6744
|
await this.util.openSideNavMenu("Planner");
|
|
6730
6745
|
await (0, $hOLA6$expect)(this.page.locator(".gantt-container")).toBeVisible();
|
|
6746
|
+
return this.plannerView;
|
|
6731
6747
|
}
|
|
6732
6748
|
async openCodeView() {
|
|
6733
6749
|
await this.util.openSideNavMenu("Code");
|