@digital-ai/devops-page-object-release 0.0.57 → 0.0.59
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 +12 -0
- package/dist/main.js +7 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +7 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
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("
|
|
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(
|
|
5645
|
+
await this.page.getByLabel(`Choose ${cDate}`).click();
|
|
5647
5646
|
return this;
|
|
5648
5647
|
}
|
|
5649
5648
|
async save() {
|
|
@@ -7640,6 +7639,11 @@ class $6c0f5b52769b32c3$var$ConfigurationInstancePage extends (0, $9626bc9256ce3
|
|
|
7640
7639
|
await this.page.getByLabel(fieldName).click();
|
|
7641
7640
|
return this;
|
|
7642
7641
|
}
|
|
7642
|
+
async expectTextFieldNotToExist(fieldName) {
|
|
7643
|
+
const locator = this.page.locator(`.input-scalar[data-test-id="${fieldName}"]`);
|
|
7644
|
+
await (0, $hOLA6$expect)(locator).toHaveCount(0);
|
|
7645
|
+
return this;
|
|
7646
|
+
}
|
|
7643
7647
|
// To avoid flakiness and clicking around the page, we can directly click on the header
|
|
7644
7648
|
async clickHeader() {
|
|
7645
7649
|
await this.page.locator(".configuration-instance-page h2").click();
|