@digital-ai/devops-page-object-release 0.0.0-snapshot-20251209071345 → 0.0.0-snapshot-20251209141752
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 +43 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +43 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +8 -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);
|
|
@@ -2933,6 +2937,27 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2933
2937
|
async expectReleaseTaggedWith(tagName) {
|
|
2934
2938
|
await (0, $hOLA6$expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
2935
2939
|
}
|
|
2940
|
+
async expectReleaseNotTaggedWith(tagName) {
|
|
2941
|
+
await (0, $hOLA6$expect)(this.page.locator(`#tags`, {
|
|
2942
|
+
hasText: tagName
|
|
2943
|
+
})).toHaveCount(0);
|
|
2944
|
+
}
|
|
2945
|
+
async addTag(tagName) {
|
|
2946
|
+
const tagInput = this.page.locator('input[placeholder="Add a tag..."]');
|
|
2947
|
+
await tagInput.fill(tagName);
|
|
2948
|
+
await tagInput.press("Enter");
|
|
2949
|
+
await (0, $hOLA6$expect)(this.page.locator(`#tags`, {
|
|
2950
|
+
hasText: tagName
|
|
2951
|
+
})).toBeVisible();
|
|
2952
|
+
}
|
|
2953
|
+
async removeTag(tagName) {
|
|
2954
|
+
const tag = this.page.locator(`#tags`, {
|
|
2955
|
+
hasText: tagName
|
|
2956
|
+
});
|
|
2957
|
+
const removeIcon = tag.locator(".tag-close");
|
|
2958
|
+
await removeIcon.click();
|
|
2959
|
+
await (0, $hOLA6$expect)(tag).toHaveCount(0);
|
|
2960
|
+
}
|
|
2936
2961
|
async expectTemplateTitleToBe(templateTitle) {
|
|
2937
2962
|
await (0, $hOLA6$expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
2938
2963
|
}
|
|
@@ -5994,6 +6019,24 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5994
6019
|
})).toHaveCount(0);
|
|
5995
6020
|
return this;
|
|
5996
6021
|
}
|
|
6022
|
+
async expectUserUnlockedToaster(user) {
|
|
6023
|
+
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked successfully`)).toBeVisible({
|
|
6024
|
+
timeout: 10000
|
|
6025
|
+
});
|
|
6026
|
+
}
|
|
6027
|
+
async unlockUser(user) {
|
|
6028
|
+
await this.page.getByTestId(`unlock-btn-${user}`).click();
|
|
6029
|
+
}
|
|
6030
|
+
async expectWarningVisibility(warningRegex, shouldBeVisible) {
|
|
6031
|
+
const locator = this.page.getByText(warningRegex);
|
|
6032
|
+
if (shouldBeVisible) await (0, $hOLA6$expect)(locator).toHaveCount(1);
|
|
6033
|
+
else await (0, $hOLA6$expect)(locator).toHaveCount(0);
|
|
6034
|
+
}
|
|
6035
|
+
async editUserClickCancelButton() {
|
|
6036
|
+
await this.page.getByRole("button", {
|
|
6037
|
+
name: "Cancel"
|
|
6038
|
+
}).click();
|
|
6039
|
+
}
|
|
5997
6040
|
}
|
|
5998
6041
|
|
|
5999
6042
|
|