@digital-ai/devops-page-object-release 0.0.0-snapshot-20251210102728 → 0.0.0-snapshot-20251212071754
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 +3 -2
- package/dist/main.js +32 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +32 -6
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -2937,6 +2937,27 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
2937
2937
|
async expectReleaseTaggedWith(tagName) {
|
|
2938
2938
|
await (0, $hOLA6$expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
2939
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
|
+
}
|
|
2940
2961
|
async expectTemplateTitleToBe(templateTitle) {
|
|
2941
2962
|
await (0, $hOLA6$expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
2942
2963
|
}
|
|
@@ -5908,8 +5929,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5908
5929
|
}).getByRole("checkbox")).toBeChecked();
|
|
5909
5930
|
}
|
|
5910
5931
|
async deleteUser(username) {
|
|
5911
|
-
await this.page.getByTestId(`
|
|
5912
|
-
await this.page.locator(".icon-delete").click();
|
|
5932
|
+
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
5913
5933
|
await this.modal.delete();
|
|
5914
5934
|
}
|
|
5915
5935
|
async openRoles() {
|
|
@@ -5936,6 +5956,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5936
5956
|
}).locator(`td`).filter({
|
|
5937
5957
|
hasText: type
|
|
5938
5958
|
}).count()).toBeGreaterThan(0);
|
|
5959
|
+
if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5960
|
+
hasText: user.name
|
|
5961
|
+
}).locator('[data-testid="user-account-lock"]')).toBeVisible();
|
|
5939
5962
|
if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5940
5963
|
hasText: user.name
|
|
5941
5964
|
}).locator(`td`).filter({
|
|
@@ -5951,7 +5974,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5951
5974
|
}).locator(`td`).filter({
|
|
5952
5975
|
hasText: user.externalId
|
|
5953
5976
|
}).count()).toBeGreaterThan(0);
|
|
5954
|
-
(0, $hOLA6$expect)(await this.page.
|
|
5977
|
+
(0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5978
|
+
hasText: user.name
|
|
5979
|
+
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
5955
5980
|
}
|
|
5956
5981
|
}
|
|
5957
5982
|
async expectNoUser(username) {
|
|
@@ -5960,8 +5985,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5960
5985
|
}
|
|
5961
5986
|
async updateUser(username) {
|
|
5962
5987
|
await this.filterUser(username);
|
|
5963
|
-
await this.page.
|
|
5964
|
-
|
|
5988
|
+
await this.page.getByRole("row", {
|
|
5989
|
+
name: "" + username + ""
|
|
5990
|
+
}).locator(".icon-edit").click();
|
|
5965
5991
|
return this.modal;
|
|
5966
5992
|
}
|
|
5967
5993
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -5997,7 +6023,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5997
6023
|
return this;
|
|
5998
6024
|
}
|
|
5999
6025
|
async expectUserUnlockedToaster(user) {
|
|
6000
|
-
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked
|
|
6026
|
+
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} was unlocked and can now login in again`)).toBeVisible({
|
|
6001
6027
|
timeout: 10000
|
|
6002
6028
|
});
|
|
6003
6029
|
}
|