@digital-ai/devops-page-object-release 0.0.57 → 0.0.58

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/dist/module.js CHANGED
@@ -5638,12 +5638,11 @@ class $3a340a3f4fd8f04d$export$61be9a231bfbe7b9 extends (0, $9626bc9256ce31f7$ex
5638
5638
  }
5639
5639
  // Have to revisit here fix the date selection for different months
5640
5640
  async setEndDate(date) {
5641
- const cDate = (0, $hOLA6$moment)(date).format("D");
5642
- const month = (0, $hOLA6$moment)(date).format("MMMM").toLocaleLowerCase();
5641
+ const cDate = (0, $hOLA6$moment)(date).format("dddd, MMMM Do, YYYY");
5643
5642
  await this.page.locator(".widget-datetime").filter({
5644
5643
  hasText: "End date"
5645
5644
  }).locator(".xl-react-widget-date input").click();
5646
- await this.page.getByLabel(`${month} ${cDate}`).click();
5645
+ await this.page.getByLabel(`Choose ${cDate}`).click();
5647
5646
  return this;
5648
5647
  }
5649
5648
  async save() {