@digital-ai/devops-page-object-release 0.0.98 → 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 +6 -0
- package/dist/main.js +12 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +12 -0
- 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();
|