@digital-ai/devops-page-object-release 0.0.96 → 0.0.98
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 +13 -0
- package/dist/main.js +33 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +33 -8
- 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,7 +5929,9 @@ 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(`
|
|
5932
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
5933
|
+
await (0, $hOLA6$expect)(this.page.locator(".icon-delete")).toBeVisible();
|
|
5934
|
+
await this.page.locator(".icon-delete").click();
|
|
5912
5935
|
await this.modal.delete();
|
|
5913
5936
|
}
|
|
5914
5937
|
async openRoles() {
|
|
@@ -5935,6 +5958,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5935
5958
|
}).locator(`td`).filter({
|
|
5936
5959
|
hasText: type
|
|
5937
5960
|
}).count()).toBeGreaterThan(0);
|
|
5961
|
+
if (user.accountLocked) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5962
|
+
hasText: user.name
|
|
5963
|
+
}).locator('[data-testid="user-account-lock"]')).toBeVisible();
|
|
5938
5964
|
if (user.email) (0, $hOLA6$expect)(await this.page.locator(`tr`).filter({
|
|
5939
5965
|
hasText: user.name
|
|
5940
5966
|
}).locator(`td`).filter({
|
|
@@ -5950,9 +5976,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5950
5976
|
}).locator(`td`).filter({
|
|
5951
5977
|
hasText: user.externalId
|
|
5952
5978
|
}).count()).toBeGreaterThan(0);
|
|
5953
|
-
(0, $hOLA6$expect)(await this.page.
|
|
5954
|
-
hasText: user.name
|
|
5955
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
5979
|
+
(0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
5956
5980
|
}
|
|
5957
5981
|
}
|
|
5958
5982
|
async expectNoUser(username) {
|
|
@@ -5961,9 +5985,10 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5961
5985
|
}
|
|
5962
5986
|
async updateUser(username) {
|
|
5963
5987
|
await this.filterUser(username);
|
|
5964
|
-
await this.page.
|
|
5965
|
-
|
|
5966
|
-
|
|
5988
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
5989
|
+
const editIcon = this.page.locator(".icon-edit");
|
|
5990
|
+
await (0, $hOLA6$expect)(editIcon).toBeVisible();
|
|
5991
|
+
await editIcon.click();
|
|
5967
5992
|
return this.modal;
|
|
5968
5993
|
}
|
|
5969
5994
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -5999,7 +6024,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5999
6024
|
return this;
|
|
6000
6025
|
}
|
|
6001
6026
|
async expectUserUnlockedToaster(user) {
|
|
6002
|
-
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} unlocked
|
|
6027
|
+
await (0, $hOLA6$expect)(this.page.getByText(`User ${user} was unlocked and can now login in again.`)).toBeVisible({
|
|
6003
6028
|
timeout: 10000
|
|
6004
6029
|
});
|
|
6005
6030
|
}
|