@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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 0.0.55
4
11
 
5
12
  ### 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({
@@ -7571,6 +7584,7 @@ class $170d32617f3aa58e$var$TemplateVariableModal extends (0, $f8721861c660dd88$
7571
7584
 
7572
7585
 
7573
7586
 
7587
+
7574
7588
  class $959d38250779aa22$export$8c8e7207254accc2 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
7575
7589
  constructor(page){
7576
7590
  super(page);
@@ -7581,6 +7595,7 @@ class $959d38250779aa22$export$8c8e7207254accc2 extends (0, $f8721861c660dd88$ex
7581
7595
  this.triggers = new (0, $b12db2561a3bf785$export$899a7095bab1879d)(page);
7582
7596
  this.util = new (0, $2c89ba54932fbba8$export$f8f26dd395d7e1bd)(page);
7583
7597
  this.variables = new (0, $170d32617f3aa58e$export$e0f84914460c3382)(page);
7598
+ this.plannerView = new (0, $e8395395d01b66bb$export$5a82be0a2a261cc6)(page);
7584
7599
  }
7585
7600
  async openTemplateMenu(menuItem) {
7586
7601
  await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
@@ -7664,6 +7679,7 @@ class $959d38250779aa22$export$8c8e7207254accc2 extends (0, $f8721861c660dd88$ex
7664
7679
  async openPlannerView() {
7665
7680
  await this.util.openSideNavMenu("Planner");
7666
7681
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".gantt-container")).toBeVisible();
7682
+ return this.plannerView;
7667
7683
  }
7668
7684
  async openCodeView() {
7669
7685
  await this.util.openSideNavMenu("Code");