@digital-ai/devops-page-object-release 0.0.80 → 0.0.81
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 +6 -0
- package/dist/main.js +56 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +56 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1197 -1186
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -4578,7 +4578,7 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4578
4578
|
async disableAutoComplete() {
|
|
4579
4579
|
await this.page.getByRole("checkbox").uncheck();
|
|
4580
4580
|
}
|
|
4581
|
-
async setDuration(month, days, hours) {
|
|
4581
|
+
async setDuration({ month: month , days: days , hours: hours }) {
|
|
4582
4582
|
await this.page.getByRole("group", {
|
|
4583
4583
|
name: "Pattern details"
|
|
4584
4584
|
}).getByRole("textbox").click();
|
|
@@ -4589,10 +4589,11 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4589
4589
|
await this.page.locator('input[name="hours"]').click();
|
|
4590
4590
|
await this.page.locator('input[name="hours"]').fill(hours.toString());
|
|
4591
4591
|
}
|
|
4592
|
-
async createNewPattern(patternName, patternDescription) {
|
|
4592
|
+
async createNewPattern(patternName, patternDescription, duration) {
|
|
4593
4593
|
await this.clickNewDeliveryPattern();
|
|
4594
4594
|
await this.setPatternName(patternName);
|
|
4595
4595
|
await this.setPatternDescription(patternDescription);
|
|
4596
|
+
await this.setDuration(duration);
|
|
4596
4597
|
await (0, $hOLA6$expect)(this.page.locator(".action-toolbar-actions button").filter({
|
|
4597
4598
|
hasText: "Create"
|
|
4598
4599
|
})).toBeEnabled();
|
|
@@ -4620,25 +4621,59 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4620
4621
|
await this.page.getByPlaceholder("Filter by name...").clear();
|
|
4621
4622
|
await this.page.getByPlaceholder("Filter by name...").fill(patternName);
|
|
4622
4623
|
await this.page.getByPlaceholder("Filter by name...").press("Enter");
|
|
4623
|
-
await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
|
|
4624
|
-
hasText: patternName
|
|
4625
|
-
})).toBeVisible();
|
|
4626
4624
|
}
|
|
4627
4625
|
async openProperties() {
|
|
4628
4626
|
await this.util.openSideNavMenu("Properties");
|
|
4629
4627
|
return new $d13e78163af94d50$var$Properties(this.page);
|
|
4630
4628
|
}
|
|
4629
|
+
async openTrackedItems() {
|
|
4630
|
+
await this.util.openSideNavMenu("Tracked items");
|
|
4631
|
+
return new $d13e78163af94d50$var$Properties(this.page);
|
|
4632
|
+
}
|
|
4633
|
+
async addTrackedItem(trackedItemName) {
|
|
4634
|
+
await this.page.getByRole("button", {
|
|
4635
|
+
name: "Add tracked item"
|
|
4636
|
+
}).click();
|
|
4637
|
+
await this.page.getByPlaceholder("Add...").fill(trackedItemName);
|
|
4638
|
+
await this.page.getByRole("button", {
|
|
4639
|
+
name: "Create"
|
|
4640
|
+
}).click();
|
|
4641
|
+
await (0, $hOLA6$expect)(this.page.getByText(trackedItemName)).toBeVisible();
|
|
4642
|
+
return new $d13e78163af94d50$var$Properties(this.page);
|
|
4643
|
+
}
|
|
4644
|
+
async editTrackedItemName(oldName, newName) {
|
|
4645
|
+
// Open the edit modal for the given tracked item
|
|
4646
|
+
await this.page.locator(".track-panel", {
|
|
4647
|
+
hasText: oldName
|
|
4648
|
+
}).locator(".action-label", {
|
|
4649
|
+
hasText: "Edit"
|
|
4650
|
+
}).click();
|
|
4651
|
+
// Wait for modal to be visible
|
|
4652
|
+
const modal = this.page.locator(".xl-react-modal .xl-react-modal-content");
|
|
4653
|
+
await (0, $hOLA6$expect)(modal).toBeVisible();
|
|
4654
|
+
// Clear the input and type new name
|
|
4655
|
+
const nameInput = modal.locator('input[type="text"]');
|
|
4656
|
+
await nameInput.clear();
|
|
4657
|
+
await nameInput.fill(newName);
|
|
4658
|
+
// Click Save
|
|
4659
|
+
await modal.locator("button.xl-react-button.button.primary", {
|
|
4660
|
+
hasText: "Save"
|
|
4661
|
+
}).click();
|
|
4662
|
+
// Verify the updated name appears in the tracked items list
|
|
4663
|
+
await (0, $hOLA6$expect)(this.page.locator(".track-panel")).toContainText(newName);
|
|
4664
|
+
}
|
|
4631
4665
|
async back() {
|
|
4632
4666
|
await this.page.getByTestId("back-button").click();
|
|
4633
4667
|
}
|
|
4634
|
-
async copyPattern(existingPatternName
|
|
4668
|
+
async copyPattern(existingPatternName) {
|
|
4635
4669
|
await this.clickCopyPatternIcon(existingPatternName);
|
|
4636
|
-
await this.page.locator(".xl-icon.close-icon").first().click();
|
|
4637
|
-
await this.addName.fill(NewPatternName);
|
|
4638
4670
|
await this.page.getByRole("button", {
|
|
4639
4671
|
name: "Continue"
|
|
4640
4672
|
}).click();
|
|
4641
4673
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
|
|
4674
|
+
await (0, $hOLA6$expect)(this.page.getByRole("link", {
|
|
4675
|
+
name: `${existingPatternName} (1)`
|
|
4676
|
+
})).toBeVisible();
|
|
4642
4677
|
}
|
|
4643
4678
|
async clickDeletePattern(patternName) {
|
|
4644
4679
|
await this.page.locator(".delivery-pattern-row").filter({
|
|
@@ -4654,6 +4689,19 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4654
4689
|
hasText: patternName
|
|
4655
4690
|
})).not.toBeVisible();
|
|
4656
4691
|
}
|
|
4692
|
+
async expectPatternIsVisible(patternName) {
|
|
4693
|
+
await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
|
|
4694
|
+
hasText: patternName
|
|
4695
|
+
})).toBeVisible();
|
|
4696
|
+
}
|
|
4697
|
+
async expectPatternIsNotVisible(patternName) {
|
|
4698
|
+
await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
|
|
4699
|
+
hasText: patternName
|
|
4700
|
+
})).toBeHidden();
|
|
4701
|
+
}
|
|
4702
|
+
noPatternsMessageIsVisible() {
|
|
4703
|
+
return (0, $hOLA6$expect)(this.page.getByText("No delivery patterns found")).toBeVisible();
|
|
4704
|
+
}
|
|
4657
4705
|
async createNewDelivery(deliveryName, deliveryDes, setAutoComplete) {
|
|
4658
4706
|
await this.page.getByRole("button", {
|
|
4659
4707
|
name: "New delivery"
|