@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 0.0.99
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 70bd85d: S-127475 : Added SPEL related page objects
|
|
8
|
+
|
|
9
|
+
## 0.0.98
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f76a633: S-127036: Update for Action button with options. Updated the action button implementation to use a dropdown menu pattern instead of direct action buttons.
|
|
14
|
+
|
|
3
15
|
## 0.0.97
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -2065,6 +2065,9 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
|
|
|
2065
2065
|
this.preconditionToggle = page.getByLabel("Enable precondition");
|
|
2066
2066
|
this.textEditor = page.locator("textarea");
|
|
2067
2067
|
this.saveButton = page.getByTestId("save-btn");
|
|
2068
|
+
this.selectEL = page.getByRole("textbox", {
|
|
2069
|
+
name: "Precondition type"
|
|
2070
|
+
}).getByLabel("Precondition type");
|
|
2068
2071
|
}
|
|
2069
2072
|
async enablePrecondition() {
|
|
2070
2073
|
(0, $kKeXs$playwrighttest.expect)(await this.preconditionToggle.isChecked()).toBe(false);
|
|
@@ -2080,6 +2083,15 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
|
|
|
2080
2083
|
await this.saveButton.dblclick();
|
|
2081
2084
|
await this.page.waitForTimeout(1000);
|
|
2082
2085
|
}
|
|
2086
|
+
async setPreconditionToEL(script) {
|
|
2087
|
+
await this.enablePrecondition();
|
|
2088
|
+
await this.selectEL.click();
|
|
2089
|
+
await this.selectEL.selectOption("EL");
|
|
2090
|
+
await this.page.locator(".ace_content").click();
|
|
2091
|
+
await this.textEditor.fill(script);
|
|
2092
|
+
await this.saveButton.dblclick();
|
|
2093
|
+
await this.page.waitForTimeout(1000);
|
|
2094
|
+
}
|
|
2083
2095
|
async expectPreconditionEditable(editable) {
|
|
2084
2096
|
if (editable) await (0, $kKeXs$playwrighttest.expect)(this.textEditor).toBeEditable();
|
|
2085
2097
|
else await (0, $kKeXs$playwrighttest.expect)(this.textEditor).not.toBeEditable();
|
|
@@ -6865,7 +6877,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6865
6877
|
}).getByRole("checkbox")).toBeChecked();
|
|
6866
6878
|
}
|
|
6867
6879
|
async deleteUser(username) {
|
|
6868
|
-
await this.page.getByTestId(`
|
|
6880
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6881
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".icon-delete")).toBeVisible();
|
|
6882
|
+
await this.page.locator(".icon-delete").click();
|
|
6869
6883
|
await this.modal.delete();
|
|
6870
6884
|
}
|
|
6871
6885
|
async openRoles() {
|
|
@@ -6910,9 +6924,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6910
6924
|
}).locator(`td`).filter({
|
|
6911
6925
|
hasText: user.externalId
|
|
6912
6926
|
}).count()).toBeGreaterThan(0);
|
|
6913
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6914
|
-
hasText: user.name
|
|
6915
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6927
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
6916
6928
|
}
|
|
6917
6929
|
}
|
|
6918
6930
|
async expectNoUser(username) {
|
|
@@ -6921,9 +6933,10 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6921
6933
|
}
|
|
6922
6934
|
async updateUser(username) {
|
|
6923
6935
|
await this.filterUser(username);
|
|
6924
|
-
await this.page.
|
|
6925
|
-
|
|
6926
|
-
|
|
6936
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6937
|
+
const editIcon = this.page.locator(".icon-edit");
|
|
6938
|
+
await (0, $kKeXs$playwrighttest.expect)(editIcon).toBeVisible();
|
|
6939
|
+
await editIcon.click();
|
|
6927
6940
|
return this.modal;
|
|
6928
6941
|
}
|
|
6929
6942
|
async sortByColumn(columnName, columnIndex) {
|