@digital-ai/devops-page-object-release 0.0.97 → 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 +6 -0
- package/dist/main.js +8 -7
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -7
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -5929,7 +5929,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5929
5929
|
}).getByRole("checkbox")).toBeChecked();
|
|
5930
5930
|
}
|
|
5931
5931
|
async deleteUser(username) {
|
|
5932
|
-
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();
|
|
5933
5935
|
await this.modal.delete();
|
|
5934
5936
|
}
|
|
5935
5937
|
async openRoles() {
|
|
@@ -5974,9 +5976,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5974
5976
|
}).locator(`td`).filter({
|
|
5975
5977
|
hasText: user.externalId
|
|
5976
5978
|
}).count()).toBeGreaterThan(0);
|
|
5977
|
-
(0, $hOLA6$expect)(await this.page.
|
|
5978
|
-
hasText: user.name
|
|
5979
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
5979
|
+
(0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
5980
5980
|
}
|
|
5981
5981
|
}
|
|
5982
5982
|
async expectNoUser(username) {
|
|
@@ -5985,9 +5985,10 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5985
5985
|
}
|
|
5986
5986
|
async updateUser(username) {
|
|
5987
5987
|
await this.filterUser(username);
|
|
5988
|
-
await this.page.
|
|
5989
|
-
|
|
5990
|
-
|
|
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();
|
|
5991
5992
|
return this.modal;
|
|
5992
5993
|
}
|
|
5993
5994
|
async sortByColumn(columnName, columnIndex) {
|