@digital-ai/devops-page-object-release 0.0.2 → 0.0.4
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 +91 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +91 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +26 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -1063,6 +1063,78 @@ class $e53d02b209248a0b$var$ReleaseVariableModal extends (0, $f8721861c660dd88$e
|
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
class $d91a6ef09b618c8d$export$e946776eae644790 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
1069
|
+
constructor(page){
|
|
1070
|
+
super(page);
|
|
1071
|
+
this.taskDrawerLocator = this.page.locator("task-drawer .dot-drawer");
|
|
1072
|
+
}
|
|
1073
|
+
async openConfigRail() {
|
|
1074
|
+
await this.openRail("Config");
|
|
1075
|
+
return new $d91a6ef09b618c8d$var$ConfigRail(this.page);
|
|
1076
|
+
}
|
|
1077
|
+
async openRail(rail) {
|
|
1078
|
+
await this.taskDrawerLocator.locator(".task-navigation-rail").getByText(rail).click();
|
|
1079
|
+
}
|
|
1080
|
+
async close() {
|
|
1081
|
+
await this.taskDrawerLocator.locator(".task-drawer-header").getByTestId("close-btn").click();
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
class $d91a6ef09b618c8d$var$ConfigRail extends $d91a6ef09b618c8d$export$e946776eae644790 {
|
|
1085
|
+
constructor(page){
|
|
1086
|
+
super(page);
|
|
1087
|
+
this.railLocator = this.taskDrawerLocator.locator(".task-config");
|
|
1088
|
+
}
|
|
1089
|
+
async openInputProperties() {
|
|
1090
|
+
await this.railLocator.locator(".task-config-header").getByText("Input properties").click();
|
|
1091
|
+
}
|
|
1092
|
+
async openOutputProperties() {
|
|
1093
|
+
await this.railLocator.locator(".task-config-header").getByText("Output properties").click();
|
|
1094
|
+
}
|
|
1095
|
+
async getValueFromCi(propertyName) {
|
|
1096
|
+
return this.railLocator.locator(`input[id="${propertyName}"]`).inputValue();
|
|
1097
|
+
}
|
|
1098
|
+
async getAllOptionsFromCi(propertyName) {
|
|
1099
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1100
|
+
return this.railLocator.locator(`.dot-popper ul li`).allInnerTexts();
|
|
1101
|
+
}
|
|
1102
|
+
async setValueFromCi(propertyName, value) {
|
|
1103
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
|
|
1104
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1105
|
+
await this.railLocator.locator(`.dot-popper ul li`, {
|
|
1106
|
+
hasText: value
|
|
1107
|
+
}).click();
|
|
1108
|
+
}
|
|
1109
|
+
async getValueFromString(propertyName) {
|
|
1110
|
+
await this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`).focus();
|
|
1111
|
+
return this.railLocator.locator(`input[id="${propertyName}"]`).inputValue();
|
|
1112
|
+
}
|
|
1113
|
+
async setValueFromString(propertyName, value) {
|
|
1114
|
+
await this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`).focus();
|
|
1115
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).fill(value);
|
|
1116
|
+
}
|
|
1117
|
+
async setValueFromLargeString(propertyName, value) {
|
|
1118
|
+
await this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`).focus();
|
|
1119
|
+
await this.railLocator.locator(`textarea[id="${propertyName}"]`).fill(value);
|
|
1120
|
+
}
|
|
1121
|
+
async setValueFromPassword(propertyName, value) {
|
|
1122
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).fill(value);
|
|
1123
|
+
}
|
|
1124
|
+
async setAndCreateVariable(propertyName, variableName) {
|
|
1125
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
|
|
1126
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
1127
|
+
await this.railLocator.locator(`input[id="${propertyName}"]`).fill(variableName);
|
|
1128
|
+
await this.railLocator.locator(`.dot-popper button`, {
|
|
1129
|
+
hasText: variableName
|
|
1130
|
+
}).click();
|
|
1131
|
+
}
|
|
1132
|
+
async expectValueFromString(propertyName, propertyValue) {
|
|
1133
|
+
return await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`)).toHaveText(propertyValue);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
|
|
1066
1138
|
class $fcbf42f405a34f2e$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
1067
1139
|
async openTriggers() {
|
|
1068
1140
|
await this.openSubPage("Triggers");
|
|
@@ -1094,12 +1166,21 @@ class $fcbf42f405a34f2e$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
|
|
|
1094
1166
|
exact: true
|
|
1095
1167
|
})).toBeVisible();
|
|
1096
1168
|
}
|
|
1169
|
+
async waitForStatusLine(statusLine) {
|
|
1170
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".task .status-line").getByText(statusLine, {
|
|
1171
|
+
exact: true
|
|
1172
|
+
})).toBeVisible();
|
|
1173
|
+
}
|
|
1097
1174
|
/**
|
|
1098
1175
|
* @deprecated Don't use this, use new TaskDrawer
|
|
1099
1176
|
*/ async openCustomScriptTaskModal(taskName) {
|
|
1100
1177
|
await this.page.locator(".task-header").getByText(taskName).click();
|
|
1101
1178
|
return new (0, $487fa7328f6a6cf2$export$b66cc3708c7bd4a4)(this.page);
|
|
1102
1179
|
}
|
|
1180
|
+
async openTaskDrawer(taskName) {
|
|
1181
|
+
await this.page.locator(".task-header").getByText(taskName).click();
|
|
1182
|
+
return new (0, $d91a6ef09b618c8d$export$e946776eae644790)(this.page);
|
|
1183
|
+
}
|
|
1103
1184
|
async openVariables() {
|
|
1104
1185
|
await this.openReleaseMenu("Variables");
|
|
1105
1186
|
return new (0, $e53d02b209248a0b$export$a87f0ae8695e74be)(this.page);
|
|
@@ -2165,6 +2246,16 @@ class $6998c6a53a9eb4fa$var$Fixtures {
|
|
|
2165
2246
|
async setFeatures(features) {
|
|
2166
2247
|
return this.doPut("/settings/features", features);
|
|
2167
2248
|
}
|
|
2249
|
+
async enableTaskDrawer(enabled) {
|
|
2250
|
+
return this.setFeatures([
|
|
2251
|
+
{
|
|
2252
|
+
id: "Configuration/features/xlrelease.TaskDrawer",
|
|
2253
|
+
type: "xlrelease.TaskDrawer",
|
|
2254
|
+
category: "Stable",
|
|
2255
|
+
enabled: enabled
|
|
2256
|
+
}
|
|
2257
|
+
]);
|
|
2258
|
+
}
|
|
2168
2259
|
doPost(url, body) {
|
|
2169
2260
|
return this.request.post(url, {
|
|
2170
2261
|
data: body,
|