@digital-ai/devops-page-object-release 0.0.0-snapshot-20250915110503 → 0.0.0-snapshot-20250922111535
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 +15 -2
- package/dist/main.js +70 -12
- package/dist/main.js.map +1 -1
- package/dist/module.js +70 -12
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1198 -1186
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -130,7 +130,7 @@ class $b34a21212642e54d$export$7034f81075184002 extends (0, $9626bc9256ce31f7$ex
|
|
|
130
130
|
return ".release-list-header";
|
|
131
131
|
}
|
|
132
132
|
getBaseDrawerSelector() {
|
|
133
|
-
return `${this.getHeaderSelector()} .
|
|
133
|
+
return `${this.getHeaderSelector()} .filter-drawer`;
|
|
134
134
|
}
|
|
135
135
|
getFilterDrawerSelector() {
|
|
136
136
|
return `${this.getBaseDrawerSelector()} div[role="dialog"]`;
|
|
@@ -1593,7 +1593,7 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1593
1593
|
}
|
|
1594
1594
|
async acceptDialogWindow() {
|
|
1595
1595
|
await this.page.getByRole("button", {
|
|
1596
|
-
name: "
|
|
1596
|
+
name: "change template"
|
|
1597
1597
|
}).click();
|
|
1598
1598
|
}
|
|
1599
1599
|
async setRiskProfile(RiskProfile) {
|
|
@@ -4189,8 +4189,8 @@ class $4cdce1306be47ecd$export$16a2118d39966c86 {
|
|
|
4189
4189
|
this.rowSelector = ".activity-logs-table .dot-tbody .dot-tr:not(.loading-row)";
|
|
4190
4190
|
}
|
|
4191
4191
|
async expectActivityLogEntry({ msg: msg , user: user }) {
|
|
4192
|
-
if (user) await (0, $hOLA6$expect)(this.page.locator(`${this.rowSelector}:has-text("${user}")`)).toBeVisible();
|
|
4193
|
-
if (msg) await (0, $hOLA6$expect)(this.page.locator(`${this.rowSelector}:has-text("${msg}")`)).toBeVisible();
|
|
4192
|
+
if (user) await (0, $hOLA6$expect)(this.page.locator(`${this.rowSelector}:has-text("${user}")`).first()).toBeVisible();
|
|
4193
|
+
if (msg) await (0, $hOLA6$expect)(this.page.locator(`${this.rowSelector}:has-text("${msg}")`).first()).toBeVisible();
|
|
4194
4194
|
return this;
|
|
4195
4195
|
}
|
|
4196
4196
|
async expectCountToBe(count) {
|
|
@@ -4284,6 +4284,14 @@ class $4cdce1306be47ecd$export$eace2be4de1d3377 extends (0, $9626bc9256ce31f7$ex
|
|
|
4284
4284
|
await this.page.goto(timelinePath);
|
|
4285
4285
|
return this;
|
|
4286
4286
|
}
|
|
4287
|
+
async openDeliveryPatternActivityLogs(folderId, deliveryId, filter) {
|
|
4288
|
+
const patternActivityLogs = await this.appendFilterQueryString(`#/folders/${folderId}/delivery-patterns/${deliveryId}/logs`, filter);
|
|
4289
|
+
await this.page.goto(patternActivityLogs);
|
|
4290
|
+
await this.page.getByTestId("activity-logs-title-typography").waitFor({
|
|
4291
|
+
state: "visible"
|
|
4292
|
+
});
|
|
4293
|
+
return new $4cdce1306be47ecd$export$16a2118d39966c86(this.page);
|
|
4294
|
+
}
|
|
4287
4295
|
async openDeliveries() {
|
|
4288
4296
|
await this.page.goto("./#/deliveries");
|
|
4289
4297
|
}
|
|
@@ -4570,7 +4578,7 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4570
4578
|
async disableAutoComplete() {
|
|
4571
4579
|
await this.page.getByRole("checkbox").uncheck();
|
|
4572
4580
|
}
|
|
4573
|
-
async setDuration(month, days, hours) {
|
|
4581
|
+
async setDuration({ month: month , days: days , hours: hours }) {
|
|
4574
4582
|
await this.page.getByRole("group", {
|
|
4575
4583
|
name: "Pattern details"
|
|
4576
4584
|
}).getByRole("textbox").click();
|
|
@@ -4581,10 +4589,11 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4581
4589
|
await this.page.locator('input[name="hours"]').click();
|
|
4582
4590
|
await this.page.locator('input[name="hours"]').fill(hours.toString());
|
|
4583
4591
|
}
|
|
4584
|
-
async createNewPattern(patternName, patternDescription) {
|
|
4592
|
+
async createNewPattern(patternName, patternDescription, duration) {
|
|
4585
4593
|
await this.clickNewDeliveryPattern();
|
|
4586
4594
|
await this.setPatternName(patternName);
|
|
4587
4595
|
await this.setPatternDescription(patternDescription);
|
|
4596
|
+
await this.setDuration(duration);
|
|
4588
4597
|
await (0, $hOLA6$expect)(this.page.locator(".action-toolbar-actions button").filter({
|
|
4589
4598
|
hasText: "Create"
|
|
4590
4599
|
})).toBeEnabled();
|
|
@@ -4612,25 +4621,59 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4612
4621
|
await this.page.getByPlaceholder("Filter by name...").clear();
|
|
4613
4622
|
await this.page.getByPlaceholder("Filter by name...").fill(patternName);
|
|
4614
4623
|
await this.page.getByPlaceholder("Filter by name...").press("Enter");
|
|
4615
|
-
await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
|
|
4616
|
-
hasText: patternName
|
|
4617
|
-
})).toBeVisible();
|
|
4618
4624
|
}
|
|
4619
4625
|
async openProperties() {
|
|
4620
4626
|
await this.util.openSideNavMenu("Properties");
|
|
4621
4627
|
return new $d13e78163af94d50$var$Properties(this.page);
|
|
4622
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
|
+
}
|
|
4623
4665
|
async back() {
|
|
4624
4666
|
await this.page.getByTestId("back-button").click();
|
|
4625
4667
|
}
|
|
4626
|
-
async copyPattern(existingPatternName
|
|
4668
|
+
async copyPattern(existingPatternName) {
|
|
4627
4669
|
await this.clickCopyPatternIcon(existingPatternName);
|
|
4628
|
-
await this.page.locator(".xl-icon.close-icon").first().click();
|
|
4629
|
-
await this.addName.fill(NewPatternName);
|
|
4630
4670
|
await this.page.getByRole("button", {
|
|
4631
4671
|
name: "Continue"
|
|
4632
4672
|
}).click();
|
|
4633
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();
|
|
4634
4677
|
}
|
|
4635
4678
|
async clickDeletePattern(patternName) {
|
|
4636
4679
|
await this.page.locator(".delivery-pattern-row").filter({
|
|
@@ -4646,6 +4689,21 @@ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$ex
|
|
|
4646
4689
|
hasText: patternName
|
|
4647
4690
|
})).not.toBeVisible();
|
|
4648
4691
|
}
|
|
4692
|
+
async expectPatternIsVisible(patternName) {
|
|
4693
|
+
const locator = this.page.locator(".delivery-pattern-row").filter({
|
|
4694
|
+
hasText: patternName
|
|
4695
|
+
});
|
|
4696
|
+
await (0, $hOLA6$expect)(locator).toBeVisible(); // assertion with auto-wait
|
|
4697
|
+
}
|
|
4698
|
+
async expectPatternIsNotVisible(patternName) {
|
|
4699
|
+
const locator = this.page.locator(".delivery-pattern-row").filter({
|
|
4700
|
+
hasText: patternName
|
|
4701
|
+
});
|
|
4702
|
+
await (0, $hOLA6$expect)(locator).toBeHidden(); // assertion with auto-wait
|
|
4703
|
+
}
|
|
4704
|
+
noPatternsMessageIsVisible() {
|
|
4705
|
+
return (0, $hOLA6$expect)(this.page.getByText("No delivery patterns found")).toBeVisible();
|
|
4706
|
+
}
|
|
4649
4707
|
async createNewDelivery(deliveryName, deliveryDes, setAutoComplete) {
|
|
4650
4708
|
await this.page.getByRole("button", {
|
|
4651
4709
|
name: "New delivery"
|