@digital-ai/devops-page-object-release 0.0.0-snapshot-20251208152659 → 0.0.0-snapshot-20251209115646
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 +20 -2
- package/dist/main.js +50 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +50 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -322,6 +322,10 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $b34a21212642e54d$ex
|
|
|
322
322
|
}).click();
|
|
323
323
|
return new (0, $43cbcdfccb6c2a76$export$f43492e8ac3c566)(this.page);
|
|
324
324
|
}
|
|
325
|
+
async expectReleaseFlagged(title, flag) {
|
|
326
|
+
const release = this.page.locator(`.release:has-text("${title}").flagged_${flag}`);
|
|
327
|
+
await (0, $hOLA6$expect)(release).toBeVisible();
|
|
328
|
+
}
|
|
325
329
|
async createNewRelease(releaseName, description) {
|
|
326
330
|
await this.releaseCreatePage.setName(releaseName);
|
|
327
331
|
await this.releaseCreatePage.setDescription(description);
|
|
@@ -2782,6 +2786,19 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2782
2786
|
await download.saveAs("./core/xlr-ui/build/playwright/" + download.suggestedFilename());
|
|
2783
2787
|
(0, $hOLA6$expect)(download.suggestedFilename()).toBe(filename);
|
|
2784
2788
|
}
|
|
2789
|
+
async verifyCalendarEventDownload(releaseName) {
|
|
2790
|
+
// Start listening for download event
|
|
2791
|
+
const downloadPromise1 = this.page.waitForEvent("download");
|
|
2792
|
+
const expectedFilename = `${releaseName}.ics`;
|
|
2793
|
+
// Trigger the download
|
|
2794
|
+
await this.page.getByRole("button", {
|
|
2795
|
+
name: "Download calendar event"
|
|
2796
|
+
}).click();
|
|
2797
|
+
// Wait for the download to complete
|
|
2798
|
+
const download = await downloadPromise1;
|
|
2799
|
+
// Validate the file name
|
|
2800
|
+
(0, $hOLA6$expect)(download.suggestedFilename()).toBe(expectedFilename);
|
|
2801
|
+
}
|
|
2785
2802
|
async deleteAttachment(fileName) {
|
|
2786
2803
|
await this.page.getByRole("row", {
|
|
2787
2804
|
name: fileName
|
|
@@ -2920,6 +2937,21 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2920
2937
|
async expectReleaseTaggedWith(tagName) {
|
|
2921
2938
|
await (0, $hOLA6$expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
2922
2939
|
}
|
|
2940
|
+
async expectReleaseNotTaggedWith(tagName) {
|
|
2941
|
+
await (0, $hOLA6$expect)(this.page.locator("#tags").getByText(tagName)).toHaveCount(0);
|
|
2942
|
+
}
|
|
2943
|
+
async addTag(tagName) {
|
|
2944
|
+
const tagInput = this.page.getByPlaceholder("Add a tag...");
|
|
2945
|
+
await tagInput.fill(tagName);
|
|
2946
|
+
await tagInput.press("Enter");
|
|
2947
|
+
await (0, $hOLA6$expect)(this.page.locator("#tags").getByText(tagName)).toBeVisible();
|
|
2948
|
+
}
|
|
2949
|
+
async removeTag(tagName) {
|
|
2950
|
+
const tag = this.page.locator("#tags").getByText(tagName);
|
|
2951
|
+
const removeIcon = tag.locator(".tag-close");
|
|
2952
|
+
await removeIcon.click();
|
|
2953
|
+
await (0, $hOLA6$expect)(this.page.locator("#tags").getByText(tagName)).toHaveCount(0);
|
|
2954
|
+
}
|
|
2923
2955
|
async expectTemplateTitleToBe(templateTitle) {
|
|
2924
2956
|
await (0, $hOLA6$expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
2925
2957
|
}
|
|
@@ -5981,6 +6013,24 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5981
6013
|
})).toHaveCount(0);
|
|
5982
6014
|
return this;
|
|
5983
6015
|
}
|
|
6016
|
+
async expectUserUnlockedToaster(user) {
|
|
6017
|
+
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
|
|
6018
|
+
timeout: 10000
|
|
6019
|
+
});
|
|
6020
|
+
}
|
|
6021
|
+
async unlockUser(user) {
|
|
6022
|
+
await this.page.getByTestId(`unlock-btn-${user}`).click();
|
|
6023
|
+
}
|
|
6024
|
+
async expectWarningVisibility(warningRegex, shouldBeVisible) {
|
|
6025
|
+
const locator = this.page.getByText(warningRegex);
|
|
6026
|
+
if (shouldBeVisible) await (0, $hOLA6$expect)(locator).toHaveCount(1);
|
|
6027
|
+
else await (0, $hOLA6$expect)(locator).toHaveCount(0);
|
|
6028
|
+
}
|
|
6029
|
+
async editUserClickCancelButton() {
|
|
6030
|
+
await this.page.getByRole("button", {
|
|
6031
|
+
name: "Cancel"
|
|
6032
|
+
}).click();
|
|
6033
|
+
}
|
|
5984
6034
|
}
|
|
5985
6035
|
|
|
5986
6036
|
|