@digital-ai/devops-page-object-release 0.0.27 → 0.0.28
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 +7 -0
- package/dist/main.js +441 -114
- package/dist/main.js.map +1 -1
- package/dist/module.js +441 -114
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +110 -33
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -141,6 +141,35 @@ declare class DeleteVariableModel extends WithPage {
|
|
|
141
141
|
replaceForBooleanValue(): Promise<void>;
|
|
142
142
|
deleteBySettingDate(date: string, monthYear: string): Promise<void>;
|
|
143
143
|
}
|
|
144
|
+
declare class ActivityRail extends WithPage {
|
|
145
|
+
expectCommentToContain(comment: string): Promise<void>;
|
|
146
|
+
expectTaskIsCommentable(isCommentable: boolean): Promise<void>;
|
|
147
|
+
}
|
|
148
|
+
declare class AttachmentRail extends WithPage {
|
|
149
|
+
expectWithAttachment(filename: string): Promise<void>;
|
|
150
|
+
getAttachmentsListCount(): Promise<number>;
|
|
151
|
+
uploadFile(filePath: string): Promise<void>;
|
|
152
|
+
downloadFile(filename: string): Promise<void>;
|
|
153
|
+
deleteAttachment(fileName: string): Promise<void>;
|
|
154
|
+
expectWithNoAttachment(tempFile: string): Promise<void>;
|
|
155
|
+
}
|
|
156
|
+
declare class AttributeRail extends WithPage {
|
|
157
|
+
constructor(page: Page);
|
|
158
|
+
clickAddAttribute(): Promise<void>;
|
|
159
|
+
expectAttributeEditable(): Promise<void>;
|
|
160
|
+
addTag(tagName: string): Promise<void>;
|
|
161
|
+
expectContainsTag(tagName: Array<string> | string): Promise<void>;
|
|
162
|
+
}
|
|
163
|
+
declare class ConditionRail extends WithPage {
|
|
164
|
+
railLocator: Locator;
|
|
165
|
+
preconditionToggle: Locator;
|
|
166
|
+
textEditor: Locator;
|
|
167
|
+
saveButton: Locator;
|
|
168
|
+
constructor(page: Page);
|
|
169
|
+
enablePrecondition(): Promise<void>;
|
|
170
|
+
disablePrecondition(): Promise<void>;
|
|
171
|
+
setPrecondition(script: string): Promise<void>;
|
|
172
|
+
}
|
|
144
173
|
declare class ConfigRail extends WithPage {
|
|
145
174
|
railLocator: Locator;
|
|
146
175
|
constructor(page: Page);
|
|
@@ -157,19 +186,10 @@ declare class ConfigRail extends WithPage {
|
|
|
157
186
|
setVariable(propertyName: string, variableName: string): Promise<void>;
|
|
158
187
|
expectValueFromString(propertyName: string, propertyValue: string): Promise<void>;
|
|
159
188
|
}
|
|
160
|
-
declare class ConditionRail extends WithPage {
|
|
161
|
-
railLocator: Locator;
|
|
162
|
-
preconditionToggle: Locator;
|
|
163
|
-
textEditor: Locator;
|
|
164
|
-
saveButton: Locator;
|
|
165
|
-
constructor(page: Page);
|
|
166
|
-
enablePrecondition(): Promise<void>;
|
|
167
|
-
disablePrecondition(): Promise<void>;
|
|
168
|
-
setPrecondition(script: string): Promise<void>;
|
|
169
|
-
}
|
|
170
189
|
declare class OverviewRail extends WithPage {
|
|
171
|
-
railLocator: Locator;
|
|
172
190
|
dependency: Dependency;
|
|
191
|
+
railLocator: Locator;
|
|
192
|
+
scriptTextArea: Locator;
|
|
173
193
|
constructor(page: Page);
|
|
174
194
|
openInputProperties(): Promise<void>;
|
|
175
195
|
openOutputProperties(): Promise<void>;
|
|
@@ -187,6 +207,7 @@ declare class OverviewRail extends WithPage {
|
|
|
187
207
|
expectTo(value: string): Promise<void>;
|
|
188
208
|
expectSubjectToBe(value: string): Promise<void>;
|
|
189
209
|
expectBodyToBe(value: string): Promise<void>;
|
|
210
|
+
setBody(value: string): Promise<void>;
|
|
190
211
|
setValueFromMap(propertyName: string, key: string, value: string): Promise<void>;
|
|
191
212
|
setScript(script: string): Promise<void>;
|
|
192
213
|
expectScriptToContain(script: string): Promise<void>;
|
|
@@ -199,6 +220,7 @@ declare class OverviewRail extends WithPage {
|
|
|
199
220
|
expectCanDeleteDependency(title: string, canDelete?: boolean): Promise<void>;
|
|
200
221
|
getDependencyCount(): Promise<number>;
|
|
201
222
|
addDependency(): Promise<void>;
|
|
223
|
+
addCondition(): Promise<void>;
|
|
202
224
|
expectDependencyText(dependencies: string): Promise<void>;
|
|
203
225
|
clickEditDependency(dependencies: string): Promise<void>;
|
|
204
226
|
validateAutoCompleteOptionsInDescription(descriptionName: string, expectedVariableCount: number, variableToSelection?: string): Promise<void>;
|
|
@@ -226,6 +248,9 @@ declare class OverviewRail extends WithPage {
|
|
|
226
248
|
expectDescription(description: string): Promise<void>;
|
|
227
249
|
editDescription(description: string): Promise<void>;
|
|
228
250
|
expectedGateConditionDisplayed(title: string): Promise<void>;
|
|
251
|
+
expectScriptEditable(): Promise<void>;
|
|
252
|
+
expectInputPropertiesEditable(propertyName: Array<string> | string): Promise<void>;
|
|
253
|
+
setSelectField(fieldName: string, fieldValue: string): Promise<void>;
|
|
229
254
|
}
|
|
230
255
|
declare class Dependency extends WithPage {
|
|
231
256
|
constructor(page: Page);
|
|
@@ -243,18 +268,6 @@ declare class Dependency extends WithPage {
|
|
|
243
268
|
enterNewVariable(variableName: string): Promise<void>;
|
|
244
269
|
selectVariable(variableName: string): Promise<void>;
|
|
245
270
|
}
|
|
246
|
-
declare class ActivityRail extends WithPage {
|
|
247
|
-
expectCommentToContain(comment: string): Promise<void>;
|
|
248
|
-
expectTaskIsCommentable(isCommentable: boolean): Promise<void>;
|
|
249
|
-
}
|
|
250
|
-
declare class AttachmentRail extends WithPage {
|
|
251
|
-
expectWithAttachment(filename: string): Promise<void>;
|
|
252
|
-
getAttachmentsListCount(): Promise<number>;
|
|
253
|
-
uploadFile(filePath: string): Promise<void>;
|
|
254
|
-
downloadFile(filename: string): Promise<void>;
|
|
255
|
-
deleteAttachment(fileName: string): Promise<void>;
|
|
256
|
-
expectWithNoAttachment(tempFile: string): Promise<void>;
|
|
257
|
-
}
|
|
258
271
|
declare class SchedulingRail extends WithPage {
|
|
259
272
|
dateUtil: DateUtil;
|
|
260
273
|
constructor(page: Page);
|
|
@@ -272,20 +285,21 @@ type Rail = 'Overview' | 'Activity' | 'Config' | 'Scheduling' | 'Conditions' | '
|
|
|
272
285
|
declare class TaskDrawer extends WithPage {
|
|
273
286
|
activity: ActivityRail;
|
|
274
287
|
attachment: AttachmentRail;
|
|
275
|
-
|
|
276
|
-
condition: ConditionRail;
|
|
277
|
-
taskDrawerLocator: Locator;
|
|
278
|
-
retryButton: Locator;
|
|
288
|
+
attribute: AttributeRail;
|
|
279
289
|
cancelButton: Locator;
|
|
280
290
|
commentBox: Locator;
|
|
291
|
+
completeButton: Locator;
|
|
281
292
|
confirm: Locator;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
scheduling: SchedulingRail;
|
|
293
|
+
config: ConfigRail;
|
|
294
|
+
condition: ConditionRail;
|
|
285
295
|
failMenu: Locator;
|
|
296
|
+
retryButton: Locator;
|
|
286
297
|
openMenu: Locator;
|
|
287
|
-
|
|
298
|
+
overview: OverviewRail;
|
|
299
|
+
scheduling: SchedulingRail;
|
|
300
|
+
skipMenu: Locator;
|
|
288
301
|
startButton: Locator;
|
|
302
|
+
taskDrawerLocator: Locator;
|
|
289
303
|
constructor(page: Page);
|
|
290
304
|
openOverviewRail(): Promise<void>;
|
|
291
305
|
openActivityRail(): Promise<void>;
|
|
@@ -300,6 +314,7 @@ declare class TaskDrawer extends WithPage {
|
|
|
300
314
|
skipTask(comment: string): Promise<void>;
|
|
301
315
|
failTask(comment: string): Promise<void>;
|
|
302
316
|
completeTask(comment: string): Promise<void>;
|
|
317
|
+
startNow(comment: string): Promise<void>;
|
|
303
318
|
expectTaskTitle(taskTitle: string): Promise<void>;
|
|
304
319
|
setTitle(title: string): Promise<void>;
|
|
305
320
|
expectTypeToContain(taskType: string): Promise<void>;
|
|
@@ -448,6 +463,7 @@ declare class Util extends WithPage {
|
|
|
448
463
|
setOrderBy(orderBy: string): Promise<void>;
|
|
449
464
|
setSearchFilter(filterText: string): Promise<void>;
|
|
450
465
|
clearSearchFilter(): Promise<void>;
|
|
466
|
+
leaveWithoutSaving(): Promise<void>;
|
|
451
467
|
}
|
|
452
468
|
declare class ReleasePage extends WithPage {
|
|
453
469
|
addPhaseBtn: Locator;
|
|
@@ -1209,7 +1225,49 @@ declare class SystemSettingsPage extends WithPage {
|
|
|
1209
1225
|
openWorkflowCategories(): Promise<void>;
|
|
1210
1226
|
openSMTPServer(): Promise<void>;
|
|
1211
1227
|
}
|
|
1228
|
+
declare class ConnectionsPage extends WithPage {
|
|
1229
|
+
constructor(page: Page);
|
|
1230
|
+
addNewInstance(typeName: string): Promise<ConfigurationInstancePage>;
|
|
1231
|
+
expectInstanceDisplayed(instanceName: string): Promise<this>;
|
|
1232
|
+
expectInstanceNotDisplayed(instanceName: string): Promise<this>;
|
|
1233
|
+
openInstance(instanceName: string): Promise<ConfigurationInstancePage>;
|
|
1234
|
+
deleteInstance(instanceName: string): Promise<this>;
|
|
1235
|
+
expectSuccessMsgToBeDisplayed(text: string): Promise<this>;
|
|
1236
|
+
clearFilter(): Promise<this>;
|
|
1237
|
+
searchInstances(instanceName: string): Promise<this>;
|
|
1238
|
+
expectErrorDisplayed(): Promise<void>;
|
|
1239
|
+
}
|
|
1240
|
+
declare class ConfigurationInstancePage extends WithPage {
|
|
1241
|
+
constructor(page: Page);
|
|
1242
|
+
setTextField(fieldName: string, fieldValue: string): Promise<this>;
|
|
1243
|
+
setNumberField(fieldName: string, fieldValue: number): Promise<this>;
|
|
1244
|
+
selectFromDropdown(fieldName: string, element: string): Promise<this>;
|
|
1245
|
+
save(): Promise<this>;
|
|
1246
|
+
test(): Promise<this>;
|
|
1247
|
+
cancel(): Promise<this>;
|
|
1248
|
+
expectResultBanner(message: string): Promise<this>;
|
|
1249
|
+
expectDropdownToBe(fieldName: string, fieldValue: string): Promise<this>;
|
|
1250
|
+
clearDropdown(fieldName: string): Promise<this>;
|
|
1251
|
+
clickField(fieldName: string): Promise<this>;
|
|
1252
|
+
expectTextFieldToBe(fieldName: string, fieldValue: string): Promise<this>;
|
|
1253
|
+
setStringList(value: Array<string> | string): Promise<this>;
|
|
1254
|
+
expectStringListCountToBe(count: number): Promise<this>;
|
|
1255
|
+
removeString(value: string): Promise<this>;
|
|
1256
|
+
setStringSet(value: Array<string> | string): Promise<this>;
|
|
1257
|
+
expectStringSetCountToBe(count: number): Promise<this>;
|
|
1258
|
+
setStringMap(pairs: {
|
|
1259
|
+
key: string;
|
|
1260
|
+
value: string;
|
|
1261
|
+
}): Promise<void>;
|
|
1262
|
+
expectStringMapCountToBe(count: number): Promise<this>;
|
|
1263
|
+
expectTestButtonToBeDisabled(): Promise<this>;
|
|
1264
|
+
togglePasswordFieldVariable(fieldName: string): Promise<this>;
|
|
1265
|
+
setPasswordFieldVariable(fieldName: string, fieldValue: string): Promise<this>;
|
|
1266
|
+
expectFieldsToNotBeVisible(fieldNames: Array<string> | string): Promise<this>;
|
|
1267
|
+
expectFieldsToBeVisible(fieldNames: Array<string> | string): Promise<this>;
|
|
1268
|
+
}
|
|
1212
1269
|
declare class Navigation {
|
|
1270
|
+
connections: ConnectionsPage;
|
|
1213
1271
|
dataRandomGenerator: DataRandomGenerator;
|
|
1214
1272
|
dateUtil: DateUtil;
|
|
1215
1273
|
folderPage: FolderPage;
|
|
@@ -1263,6 +1321,7 @@ declare class Navigation {
|
|
|
1263
1321
|
collapseSideView(): Promise<void>;
|
|
1264
1322
|
expandSideView(): Promise<void>;
|
|
1265
1323
|
openRisksProfile(): Promise<void>;
|
|
1324
|
+
openConnection(): Promise<void>;
|
|
1266
1325
|
}
|
|
1267
1326
|
declare class LoginPage extends WithPage {
|
|
1268
1327
|
/**
|
|
@@ -1380,6 +1439,7 @@ interface Task extends PlanItem {
|
|
|
1380
1439
|
flagStatus?: string;
|
|
1381
1440
|
folderId?: string;
|
|
1382
1441
|
links: Array<Link>;
|
|
1442
|
+
locked: boolean;
|
|
1383
1443
|
newReleaseTitle?: string;
|
|
1384
1444
|
owner?: string;
|
|
1385
1445
|
plannedDuration: number;
|
|
@@ -1398,7 +1458,9 @@ interface Task extends PlanItem {
|
|
|
1398
1458
|
variables?: Array<Variable>;
|
|
1399
1459
|
waitForScheduledStartDate?: boolean;
|
|
1400
1460
|
}
|
|
1401
|
-
|
|
1461
|
+
interface Condition extends PlanItem {
|
|
1462
|
+
checked?: boolean;
|
|
1463
|
+
}
|
|
1402
1464
|
type Link = PlanItem;
|
|
1403
1465
|
type Attachment = PlanItem;
|
|
1404
1466
|
interface Comment extends PlanItem {
|
|
@@ -1454,15 +1516,18 @@ type DeepPartial<T> = {
|
|
|
1454
1516
|
};
|
|
1455
1517
|
type FixtureRelease = DeepPartial<Release> & Pick<Release, 'id'>;
|
|
1456
1518
|
interface FixtureConfiguration extends PlanItem {
|
|
1519
|
+
address?: string;
|
|
1457
1520
|
apiToken?: string;
|
|
1521
|
+
authenticationMethod?: string;
|
|
1458
1522
|
folderId?: string;
|
|
1459
1523
|
password?: string;
|
|
1524
|
+
port?: number;
|
|
1460
1525
|
proxyHost?: string;
|
|
1461
1526
|
proxyPassword?: string;
|
|
1462
1527
|
proxyPort?: string;
|
|
1463
1528
|
proxyUsername?: string;
|
|
1464
1529
|
scriptLocation?: string;
|
|
1465
|
-
url
|
|
1530
|
+
url?: string;
|
|
1466
1531
|
username?: string;
|
|
1467
1532
|
}
|
|
1468
1533
|
interface FixtureCi extends PlanItem {
|
|
@@ -1579,6 +1644,18 @@ declare class Fixtures {
|
|
|
1579
1644
|
addJiraTask(): Promise<string>;
|
|
1580
1645
|
addUser(username: string, password: string): Promise<void>;
|
|
1581
1646
|
addUserProfile(username: string, profile?: any): Promise<void>;
|
|
1647
|
+
resetUserProfile(username: string, fullName?: string): Promise<APIResponse>;
|
|
1648
|
+
updateProfile(profile: {
|
|
1649
|
+
dateFormat: string;
|
|
1650
|
+
email: string;
|
|
1651
|
+
external: boolean;
|
|
1652
|
+
firstDayOfWeek: number;
|
|
1653
|
+
fullName: string;
|
|
1654
|
+
loginAllowed: boolean;
|
|
1655
|
+
profileId: string;
|
|
1656
|
+
timeFormat: string;
|
|
1657
|
+
username: string;
|
|
1658
|
+
}): Promise<APIResponse>;
|
|
1582
1659
|
expectJiraTaskStatus(taskId: string, expectedStatus: string): Promise<void>;
|
|
1583
1660
|
expectJiraTaskSummary(taskId: string, expectedSummary: string): Promise<void>;
|
|
1584
1661
|
expectContainingAttachments(releaseId: string, tempFile: string): Promise<void>;
|