@digital-ai/devops-page-object-release 0.0.97 → 0.0.99
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 +12 -0
- package/dist/main.js +20 -7
- package/dist/main.js.map +1 -1
- package/dist/module.js +20 -7
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -1129,6 +1129,9 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
|
|
|
1129
1129
|
this.preconditionToggle = page.getByLabel("Enable precondition");
|
|
1130
1130
|
this.textEditor = page.locator("textarea");
|
|
1131
1131
|
this.saveButton = page.getByTestId("save-btn");
|
|
1132
|
+
this.selectEL = page.getByRole("textbox", {
|
|
1133
|
+
name: "Precondition type"
|
|
1134
|
+
}).getByLabel("Precondition type");
|
|
1132
1135
|
}
|
|
1133
1136
|
async enablePrecondition() {
|
|
1134
1137
|
(0, $hOLA6$expect)(await this.preconditionToggle.isChecked()).toBe(false);
|
|
@@ -1144,6 +1147,15 @@ class $3fa741329d8067d5$export$d4865631ba74f3e2 extends (0, $9626bc9256ce31f7$ex
|
|
|
1144
1147
|
await this.saveButton.dblclick();
|
|
1145
1148
|
await this.page.waitForTimeout(1000);
|
|
1146
1149
|
}
|
|
1150
|
+
async setPreconditionToEL(script) {
|
|
1151
|
+
await this.enablePrecondition();
|
|
1152
|
+
await this.selectEL.click();
|
|
1153
|
+
await this.selectEL.selectOption("EL");
|
|
1154
|
+
await this.page.locator(".ace_content").click();
|
|
1155
|
+
await this.textEditor.fill(script);
|
|
1156
|
+
await this.saveButton.dblclick();
|
|
1157
|
+
await this.page.waitForTimeout(1000);
|
|
1158
|
+
}
|
|
1147
1159
|
async expectPreconditionEditable(editable) {
|
|
1148
1160
|
if (editable) await (0, $hOLA6$expect)(this.textEditor).toBeEditable();
|
|
1149
1161
|
else await (0, $hOLA6$expect)(this.textEditor).not.toBeEditable();
|
|
@@ -5929,7 +5941,9 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5929
5941
|
}).getByRole("checkbox")).toBeChecked();
|
|
5930
5942
|
}
|
|
5931
5943
|
async deleteUser(username) {
|
|
5932
|
-
await this.page.getByTestId(`
|
|
5944
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
5945
|
+
await (0, $hOLA6$expect)(this.page.locator(".icon-delete")).toBeVisible();
|
|
5946
|
+
await this.page.locator(".icon-delete").click();
|
|
5933
5947
|
await this.modal.delete();
|
|
5934
5948
|
}
|
|
5935
5949
|
async openRoles() {
|
|
@@ -5974,9 +5988,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5974
5988
|
}).locator(`td`).filter({
|
|
5975
5989
|
hasText: user.externalId
|
|
5976
5990
|
}).count()).toBeGreaterThan(0);
|
|
5977
|
-
(0, $hOLA6$expect)(await this.page.
|
|
5978
|
-
hasText: user.name
|
|
5979
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
5991
|
+
(0, $hOLA6$expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
5980
5992
|
}
|
|
5981
5993
|
}
|
|
5982
5994
|
async expectNoUser(username) {
|
|
@@ -5985,9 +5997,10 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
|
|
|
5985
5997
|
}
|
|
5986
5998
|
async updateUser(username) {
|
|
5987
5999
|
await this.filterUser(username);
|
|
5988
|
-
await this.page.
|
|
5989
|
-
|
|
5990
|
-
|
|
6000
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6001
|
+
const editIcon = this.page.locator(".icon-edit");
|
|
6002
|
+
await (0, $hOLA6$expect)(editIcon).toBeVisible();
|
|
6003
|
+
await editIcon.click();
|
|
5991
6004
|
return this.modal;
|
|
5992
6005
|
}
|
|
5993
6006
|
async sortByColumn(columnName, columnIndex) {
|