@digital-ai/devops-page-object-release 0.0.0-snapshot-20251209141752 → 0.0.0-snapshot-20251210075018
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 +2 -2
- package/dist/main.js +8 -28
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -28
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -2937,27 +2937,6 @@ 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
|
-
}
|
|
2961
2940
|
async expectTemplateTitleToBe(templateTitle) {
|
|
2962
2941
|
await (0, $hOLA6$expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
2963
2942
|
}
|
|
@@ -5929,7 +5908,8 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5929
5908
|
}).getByRole("checkbox")).toBeChecked();
|
|
5930
5909
|
}
|
|
5931
5910
|
async deleteUser(username) {
|
|
5932
|
-
await this.page.getByTestId(`
|
|
5911
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
5912
|
+
await this.page.locator(".icon-delete").click();
|
|
5933
5913
|
await this.modal.delete();
|
|
5934
5914
|
}
|
|
5935
5915
|
async openRoles() {
|
|
@@ -5956,6 +5936,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5956
5936
|
}).locator(`td`).filter({
|
|
5957
5937
|
hasText: type
|
|
5958
5938
|
}).count()).toBeGreaterThan(0);
|
|
5939
|
+
if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5940
|
+
hasText: user.name
|
|
5941
|
+
}).locator('[data-testid="user-account-lock"]').isVisible()).toBeTruthy();
|
|
5959
5942
|
if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5960
5943
|
hasText: user.name
|
|
5961
5944
|
}).locator(`td`).filter({
|
|
@@ -5971,9 +5954,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5971
5954
|
}).locator(`td`).filter({
|
|
5972
5955
|
hasText: user.externalId
|
|
5973
5956
|
}).count()).toBeGreaterThan(0);
|
|
5974
|
-
(0, $hOLA6$expect)(await this.page.
|
|
5975
|
-
hasText: user.name
|
|
5976
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
5957
|
+
(0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
5977
5958
|
}
|
|
5978
5959
|
}
|
|
5979
5960
|
async expectNoUser(username) {
|
|
@@ -5982,9 +5963,8 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5982
5963
|
}
|
|
5983
5964
|
async updateUser(username) {
|
|
5984
5965
|
await this.filterUser(username);
|
|
5985
|
-
await this.page.
|
|
5986
|
-
|
|
5987
|
-
}).locator(".icon-edit").click();
|
|
5966
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
5967
|
+
await this.page.locator(".icon-edit").click();
|
|
5988
5968
|
return this.modal;
|
|
5989
5969
|
}
|
|
5990
5970
|
async sortByColumn(columnName, columnIndex) {
|