@digital-ai/devops-page-object-release 0.0.26 → 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 +16 -0
- package/dist/main.js +1114 -210
- package/dist/main.js.map +1 -1
- package/dist/module.js +1114 -210
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +262 -54
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -73,13 +73,13 @@ declare class VariablePage extends WithPage {
|
|
|
73
73
|
constructor(page: Page);
|
|
74
74
|
openVariable(variableKey: string): Promise<VariableModal>;
|
|
75
75
|
addNewVariable(variableName: string, labelname: string, description?: string): Promise<void>;
|
|
76
|
-
selectVariableTextType(
|
|
77
|
-
selectVariableListboxType(possiblevalue: Array<string> | string, defaultValue: string, required?:
|
|
76
|
+
selectVariableTextType(valueName: string, multiline?: boolean): Promise<void>;
|
|
77
|
+
selectVariableListboxType(possiblevalue: Array<string> | string, defaultValue: string, required?: true): Promise<void>;
|
|
78
78
|
selectVariablePasswordType(possiblevalue: string): Promise<void>;
|
|
79
79
|
selectVariableCheckboxType(): Promise<void>;
|
|
80
80
|
selectVariableNumberType(possiblevalue: string): Promise<void>;
|
|
81
81
|
selectVariableMultiListType(possiblevalue1: string, possiblevalue2: string): Promise<void>;
|
|
82
|
-
|
|
82
|
+
selectVariableByDate(date: string, monthYear: string): Promise<void>;
|
|
83
83
|
setDate(date?: string, monthYear?: string): Promise<void>;
|
|
84
84
|
addVariableKeyValueMap(keys1: string, values1: string): Promise<void>;
|
|
85
85
|
addVariableSet(possiblevalue1: string): Promise<void>;
|
|
@@ -92,8 +92,11 @@ declare class VariablePage extends WithPage {
|
|
|
92
92
|
clearReleaseVariableSearch(): Promise<void>;
|
|
93
93
|
switchPossibleValuesToVariable(variableName: string): Promise<void>;
|
|
94
94
|
selectVariableListboxTypeWithVariable(variableName: string, defaultValue: string, required?: boolean): Promise<void>;
|
|
95
|
+
clickMultiline(): Promise<void>;
|
|
95
96
|
searchFolderVariable(variableName: string): Promise<void>;
|
|
96
97
|
clearFolderVarSearch(): Promise<void>;
|
|
98
|
+
clickFolderVariableButton(): Promise<void>;
|
|
99
|
+
clickReleaseVariableButton(): Promise<void>;
|
|
97
100
|
}
|
|
98
101
|
declare class VariableModal extends WithPage {
|
|
99
102
|
dateUtil: DateUtil;
|
|
@@ -116,6 +119,7 @@ declare class VariableModal extends WithPage {
|
|
|
116
119
|
setLabel(labelValue: string): Promise<void>;
|
|
117
120
|
setDate(date: string, monthYear: string): Promise<void>;
|
|
118
121
|
setValue(value: string): Promise<void>;
|
|
122
|
+
clearValue(): Promise<void>;
|
|
119
123
|
clickMultiline(): Promise<void>;
|
|
120
124
|
setValueForMultilinePassword(value: string): Promise<void>;
|
|
121
125
|
}
|
|
@@ -137,6 +141,35 @@ declare class DeleteVariableModel extends WithPage {
|
|
|
137
141
|
replaceForBooleanValue(): Promise<void>;
|
|
138
142
|
deleteBySettingDate(date: string, monthYear: string): Promise<void>;
|
|
139
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
|
+
}
|
|
140
173
|
declare class ConfigRail extends WithPage {
|
|
141
174
|
railLocator: Locator;
|
|
142
175
|
constructor(page: Page);
|
|
@@ -153,19 +186,10 @@ declare class ConfigRail extends WithPage {
|
|
|
153
186
|
setVariable(propertyName: string, variableName: string): Promise<void>;
|
|
154
187
|
expectValueFromString(propertyName: string, propertyValue: string): Promise<void>;
|
|
155
188
|
}
|
|
156
|
-
declare class ConditionRail extends WithPage {
|
|
157
|
-
railLocator: Locator;
|
|
158
|
-
preconditionToggle: Locator;
|
|
159
|
-
textEditor: Locator;
|
|
160
|
-
saveButton: Locator;
|
|
161
|
-
constructor(page: Page);
|
|
162
|
-
enablePrecondition(): Promise<void>;
|
|
163
|
-
disablePrecondition(): Promise<void>;
|
|
164
|
-
setPrecondition(script: string): Promise<void>;
|
|
165
|
-
}
|
|
166
189
|
declare class OverviewRail extends WithPage {
|
|
167
|
-
railLocator: Locator;
|
|
168
190
|
dependency: Dependency;
|
|
191
|
+
railLocator: Locator;
|
|
192
|
+
scriptTextArea: Locator;
|
|
169
193
|
constructor(page: Page);
|
|
170
194
|
openInputProperties(): Promise<void>;
|
|
171
195
|
openOutputProperties(): Promise<void>;
|
|
@@ -178,7 +202,12 @@ declare class OverviewRail extends WithPage {
|
|
|
178
202
|
setValueFromPassword(propertyName: string, value: string): Promise<void>;
|
|
179
203
|
setAndCreateVariable(propertyName: string, variableName: string): Promise<void>;
|
|
180
204
|
setVariable(propertyName: string, variableName: string): Promise<void>;
|
|
205
|
+
expectVariable(propertyName: string): Promise<void>;
|
|
181
206
|
expectValueFromString(propertyName: string, propertyValue: string): Promise<void>;
|
|
207
|
+
expectTo(value: string): Promise<void>;
|
|
208
|
+
expectSubjectToBe(value: string): Promise<void>;
|
|
209
|
+
expectBodyToBe(value: string): Promise<void>;
|
|
210
|
+
setBody(value: string): Promise<void>;
|
|
182
211
|
setValueFromMap(propertyName: string, key: string, value: string): Promise<void>;
|
|
183
212
|
setScript(script: string): Promise<void>;
|
|
184
213
|
expectScriptToContain(script: string): Promise<void>;
|
|
@@ -191,9 +220,11 @@ declare class OverviewRail extends WithPage {
|
|
|
191
220
|
expectCanDeleteDependency(title: string, canDelete?: boolean): Promise<void>;
|
|
192
221
|
getDependencyCount(): Promise<number>;
|
|
193
222
|
addDependency(): Promise<void>;
|
|
223
|
+
addCondition(): Promise<void>;
|
|
194
224
|
expectDependencyText(dependencies: string): Promise<void>;
|
|
195
225
|
clickEditDependency(dependencies: string): Promise<void>;
|
|
196
|
-
|
|
226
|
+
validateAutoCompleteOptionsInDescription(descriptionName: string, expectedVariableCount: number, variableToSelection?: string): Promise<void>;
|
|
227
|
+
validateAutoCompleteOptions(fieldLabel: string, value: string, expectedVariableCount: number, variableToSelect?: string): Promise<void>;
|
|
197
228
|
setReleaseTitle(releaseName: string): Promise<void>;
|
|
198
229
|
setFolder(folderName: string): Promise<void>;
|
|
199
230
|
setTemplate(templateName: string): Promise<void>;
|
|
@@ -209,6 +240,17 @@ declare class OverviewRail extends WithPage {
|
|
|
209
240
|
setNewAutoCompleteField(fieldLabel: string, value: string): Promise<void>;
|
|
210
241
|
setTextField(fieldID: string, value: string): Promise<void>;
|
|
211
242
|
abortButtonVisibility(visible?: boolean): Promise<void>;
|
|
243
|
+
setPattern(patternName: string): Promise<void>;
|
|
244
|
+
setStartDate(date: string): Promise<void>;
|
|
245
|
+
setEndDate(date: string): Promise<void>;
|
|
246
|
+
clickVariableButton(objectID: string, variableValue: string): Promise<void>;
|
|
247
|
+
enableFallback(): Promise<void>;
|
|
248
|
+
expectDescription(description: string): Promise<void>;
|
|
249
|
+
editDescription(description: string): Promise<void>;
|
|
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>;
|
|
212
254
|
}
|
|
213
255
|
declare class Dependency extends WithPage {
|
|
214
256
|
constructor(page: Page);
|
|
@@ -223,46 +265,45 @@ declare class Dependency extends WithPage {
|
|
|
223
265
|
expectVariableModeEnabled(mode: boolean): Promise<void>;
|
|
224
266
|
clickVariable(): Promise<void>;
|
|
225
267
|
expectMinimumOptions(options: any[]): Promise<void>;
|
|
226
|
-
enterNewVariable(
|
|
227
|
-
selectVariable(
|
|
228
|
-
}
|
|
229
|
-
declare class ActivityRail extends WithPage {
|
|
230
|
-
expectCommentToContain(text: string): Promise<void>;
|
|
231
|
-
expectTaskIsCommentable(isCommentable: boolean): Promise<void>;
|
|
232
|
-
}
|
|
233
|
-
declare class AttachmentRail extends WithPage {
|
|
234
|
-
expectWithAttachment(filename: string): Promise<void>;
|
|
235
|
-
getAttachmentsListCount(): Promise<number>;
|
|
236
|
-
uploadFile(filePath: string): Promise<void>;
|
|
237
|
-
downloadFile(filename: string): Promise<void>;
|
|
238
|
-
deleteAttachment(fileName: string): Promise<void>;
|
|
239
|
-
expectWithNoAttachment(tempFile: string): Promise<void>;
|
|
268
|
+
enterNewVariable(variableName: string): Promise<void>;
|
|
269
|
+
selectVariable(variableName: string): Promise<void>;
|
|
240
270
|
}
|
|
241
|
-
declare class
|
|
271
|
+
declare class SchedulingRail extends WithPage {
|
|
272
|
+
dateUtil: DateUtil;
|
|
242
273
|
constructor(page: Page);
|
|
243
274
|
expectStartDateToBeDisplayed(): Promise<void>;
|
|
244
275
|
expectEndDateToBeDisplayed(): Promise<void>;
|
|
276
|
+
switchWaitForScheduledDate(): Promise<void>;
|
|
277
|
+
expectWaitForScheduledDateToBeChecked(): Promise<void>;
|
|
278
|
+
expectWaitForScheduledDateToBeUnchecked(): Promise<void>;
|
|
279
|
+
setDueTime(day?: string, hour?: string, minute?: string): Promise<void>;
|
|
280
|
+
setStartDate(date: string, monthYear: string): Promise<void>;
|
|
281
|
+
setEndDate(date: string, monthYear: string): Promise<void>;
|
|
282
|
+
setDate(date: string, monthYear: string): Promise<void>;
|
|
245
283
|
}
|
|
246
284
|
type Rail = 'Overview' | 'Activity' | 'Config' | 'Scheduling' | 'Conditions' | 'Attributes' | 'Attach' | 'Tags';
|
|
247
285
|
declare class TaskDrawer extends WithPage {
|
|
248
286
|
activity: ActivityRail;
|
|
249
287
|
attachment: AttachmentRail;
|
|
250
|
-
|
|
251
|
-
condition: ConditionRail;
|
|
252
|
-
taskDrawerLocator: Locator;
|
|
253
|
-
retryButton: Locator;
|
|
288
|
+
attribute: AttributeRail;
|
|
254
289
|
cancelButton: Locator;
|
|
255
290
|
commentBox: Locator;
|
|
291
|
+
completeButton: Locator;
|
|
256
292
|
confirm: Locator;
|
|
257
|
-
|
|
258
|
-
|
|
293
|
+
config: ConfigRail;
|
|
294
|
+
condition: ConditionRail;
|
|
259
295
|
failMenu: Locator;
|
|
296
|
+
retryButton: Locator;
|
|
260
297
|
openMenu: Locator;
|
|
261
|
-
|
|
298
|
+
overview: OverviewRail;
|
|
299
|
+
scheduling: SchedulingRail;
|
|
300
|
+
skipMenu: Locator;
|
|
301
|
+
startButton: Locator;
|
|
302
|
+
taskDrawerLocator: Locator;
|
|
262
303
|
constructor(page: Page);
|
|
263
304
|
openOverviewRail(): Promise<void>;
|
|
264
305
|
openActivityRail(): Promise<void>;
|
|
265
|
-
openSchedulingRail(): Promise<
|
|
306
|
+
openSchedulingRail(): Promise<SchedulingRail>;
|
|
266
307
|
openConditionRail(): Promise<void>;
|
|
267
308
|
openAttributesRail(): Promise<void>;
|
|
268
309
|
openAttachRail(): Promise<void>;
|
|
@@ -273,17 +314,15 @@ declare class TaskDrawer extends WithPage {
|
|
|
273
314
|
skipTask(comment: string): Promise<void>;
|
|
274
315
|
failTask(comment: string): Promise<void>;
|
|
275
316
|
completeTask(comment: string): Promise<void>;
|
|
317
|
+
startNow(comment: string): Promise<void>;
|
|
276
318
|
expectTaskTitle(taskTitle: string): Promise<void>;
|
|
319
|
+
setTitle(title: string): Promise<void>;
|
|
277
320
|
expectTypeToContain(taskType: string): Promise<void>;
|
|
278
321
|
clickExpand(): Promise<void>;
|
|
279
322
|
clickShrink(): Promise<void>;
|
|
280
323
|
expectAssignedTo(username: string): Promise<void>;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
expectCommentsToContain(text: string): Promise<void>;
|
|
284
|
-
switchWaitForScheduledDate(): Promise<void>;
|
|
285
|
-
expectWaitForScheduledDateToBeChecked(): Promise<void>;
|
|
286
|
-
expectWaitForScheduledDateToBeUnchecked(): Promise<void>;
|
|
324
|
+
expectStartButtonToBeEnabled(isEnabled?: boolean): Promise<void>;
|
|
325
|
+
startTask(comment: string): Promise<void>;
|
|
287
326
|
clickOnStartDate(): Promise<void>;
|
|
288
327
|
removeStartDate(): Promise<void>;
|
|
289
328
|
setStartDate(date: string): Promise<void>;
|
|
@@ -297,11 +336,25 @@ declare class TaskDrawer extends WithPage {
|
|
|
297
336
|
}
|
|
298
337
|
declare class ReleaseGanttPage extends WithPage {
|
|
299
338
|
releaseHeader: Locator;
|
|
339
|
+
taskDrawer: TaskDrawer;
|
|
300
340
|
constructor(page: Page);
|
|
301
341
|
enableShowDates(): Promise<void>;
|
|
302
342
|
disableShowDates(): Promise<void>;
|
|
303
343
|
expectPlanningDataColumnsHidden(): Promise<void>;
|
|
304
344
|
expectPlanningDateColumnsShown(): Promise<void>;
|
|
345
|
+
expectReleaseOnBreadcrumb(title: string): Promise<void>;
|
|
346
|
+
expectPhaseDisplayed(phaseName: string): Promise<void>;
|
|
347
|
+
expectTaskDisplayed(taskName: string, isDisplayed?: boolean): Promise<void>;
|
|
348
|
+
expandGanttTree(title: string): Promise<void>;
|
|
349
|
+
expectDifferentWidth(title1: string, title2: string): Promise<void>;
|
|
350
|
+
expectSameWidth(title1: string, title2: string): Promise<void>;
|
|
351
|
+
expectElementWithClasses(title: string, classes: Array<string>): Promise<void>;
|
|
352
|
+
resizeToDayIndex(title: string, index: number): Promise<void>;
|
|
353
|
+
expectLinksToBeDisplayed(countOfLinks: number): Promise<void>;
|
|
354
|
+
expectLeftHandleVisibility(title: string, visible: boolean): Promise<void>;
|
|
355
|
+
expectRightHandleVisibility(title: string, visible: boolean): Promise<void>;
|
|
356
|
+
openTaskDrawer(title: string): Promise<TaskDrawer>;
|
|
357
|
+
openPhaseDetails(phaseName: string): Promise<void>;
|
|
305
358
|
getRow(phaseName: string): GanttRow;
|
|
306
359
|
}
|
|
307
360
|
declare class GanttRow extends WithPage {
|
|
@@ -348,6 +401,13 @@ declare class ReleasePropertiesPage extends WithPage {
|
|
|
348
401
|
setDueDate(hrs?: string, min?: string, meridian?: string): Promise<void>;
|
|
349
402
|
checkAbortOnFailure(): Promise<void>;
|
|
350
403
|
expectDescriptionToBe(description: string): Promise<void>;
|
|
404
|
+
expectReleaseNameToBe(name: string): Promise<void>;
|
|
405
|
+
expectStartDateReadonly(): Promise<void>;
|
|
406
|
+
expectEndDateReadonly(): Promise<void>;
|
|
407
|
+
setOwner(user: string): Promise<void>;
|
|
408
|
+
expectPageTitleToBeInBreadcrumbLink(releaseName: string): Promise<void>;
|
|
409
|
+
reloadPage(): Promise<void>;
|
|
410
|
+
expectOwnerToBe(user: string): Promise<void>;
|
|
351
411
|
}
|
|
352
412
|
declare class ReleaseTeamsAndPermissionsPage extends WithPage {
|
|
353
413
|
saveButton: Locator;
|
|
@@ -355,6 +415,37 @@ declare class ReleaseTeamsAndPermissionsPage extends WithPage {
|
|
|
355
415
|
constructor(page: Page);
|
|
356
416
|
expectSaveButtonDisabled(): Promise<void>;
|
|
357
417
|
}
|
|
418
|
+
declare class ReleaseTableViewPage extends WithPage {
|
|
419
|
+
commentBox: Locator;
|
|
420
|
+
dateUtil: DateUtil;
|
|
421
|
+
refreshButton: Locator;
|
|
422
|
+
taskDrawer: TaskDrawer;
|
|
423
|
+
constructor(page: Page);
|
|
424
|
+
openContextMenuForTask(taskTitle: string): Promise<void>;
|
|
425
|
+
callMenuOptionsForTask(taskTitle: string, option: string, taskGroup?: string, taskType?: string): Promise<void>;
|
|
426
|
+
expectAssignToUser(taskTitle: string, username: string): Promise<void>;
|
|
427
|
+
expectToHasGateIcon(taskTitle: string): Promise<void>;
|
|
428
|
+
expectTaskRowCountToBe(title: string, expectedCount: number): Promise<void>;
|
|
429
|
+
setHeaderFilter(columnTitle: string, valueToFilter: string): Promise<void>;
|
|
430
|
+
expectRowCountToBe(cellCount: number): Promise<void>;
|
|
431
|
+
filterStartDate(date: string, monthYear: string): Promise<void>;
|
|
432
|
+
filterEndDate(date: string, monthYear: string): Promise<void>;
|
|
433
|
+
openTaskDrawer(taskTitle: string): Promise<TaskDrawer>;
|
|
434
|
+
collapseNthRowByIndex(Indexnumber: number): Promise<void>;
|
|
435
|
+
closePhaseModal(): Promise<void>;
|
|
436
|
+
expectTaskToHaveStatus(taskTitle: string, status: string): Promise<void>;
|
|
437
|
+
expectOverdueOnEndDate(taskTitle: string): Promise<void>;
|
|
438
|
+
selectTask(taskTitle: string): Promise<void>;
|
|
439
|
+
expectSelectedTasksCounter(text: string): Promise<void>;
|
|
440
|
+
clearSelection(): Promise<this>;
|
|
441
|
+
assignSelectedTasks(owner?: string, team?: string): Promise<this>;
|
|
442
|
+
expectSuccessMessage(successMessage: string): Promise<this>;
|
|
443
|
+
completeSelectedTasks(comment: string): Promise<this>;
|
|
444
|
+
selectFromMoreActions(menuItem: string): Promise<this>;
|
|
445
|
+
addCommentToSelectedTask(comment: string): Promise<this>;
|
|
446
|
+
selectSubtasks(item: string): Promise<this>;
|
|
447
|
+
shiftSelectFromTo(taskFrom: string, taskTo: string): Promise<this>;
|
|
448
|
+
}
|
|
358
449
|
declare class Util extends WithPage {
|
|
359
450
|
tempDir: string;
|
|
360
451
|
content: string;
|
|
@@ -372,10 +463,13 @@ declare class Util extends WithPage {
|
|
|
372
463
|
setOrderBy(orderBy: string): Promise<void>;
|
|
373
464
|
setSearchFilter(filterText: string): Promise<void>;
|
|
374
465
|
clearSearchFilter(): Promise<void>;
|
|
466
|
+
leaveWithoutSaving(): Promise<void>;
|
|
375
467
|
}
|
|
376
468
|
declare class ReleasePage extends WithPage {
|
|
469
|
+
addPhaseBtn: Locator;
|
|
377
470
|
createPage: ReleaseCreatePage;
|
|
378
471
|
ganttPage: ReleaseGanttPage;
|
|
472
|
+
tableView: ReleaseTableViewPage;
|
|
379
473
|
taskDrawer: TaskDrawer;
|
|
380
474
|
teamsPermissions: ReleaseTeamsAndPermissionsPage;
|
|
381
475
|
phaseTitle: Locator;
|
|
@@ -393,6 +487,7 @@ declare class ReleasePage extends WithPage {
|
|
|
393
487
|
start(): Promise<void>;
|
|
394
488
|
waitForCompletion(timeout?: number): Promise<void>;
|
|
395
489
|
waitForTaskCompleted(taskTitle: string, timeout?: number): Promise<void>;
|
|
490
|
+
waitForTaskNeedsInput(taskTitle: string): Promise<void>;
|
|
396
491
|
waitForTaskCompletedInAdvance(taskTitle: string, timeout?: number): Promise<void>;
|
|
397
492
|
waitForTaskInProgress(taskTitle: string, timeout?: number): Promise<void>;
|
|
398
493
|
waitForTaskFailed(taskTitle: string, timeout?: number): Promise<void>;
|
|
@@ -422,6 +517,7 @@ declare class ReleasePage extends WithPage {
|
|
|
422
517
|
expandAllTaskView(): Promise<void>;
|
|
423
518
|
expectTemplateLabelNotToBePresent(): Promise<void>;
|
|
424
519
|
expectAbortedStatusToBePresent(): Promise<void>;
|
|
520
|
+
expectInProgressStatusToBePresent(): Promise<void>;
|
|
425
521
|
openTableView(): Promise<void>;
|
|
426
522
|
openPlannerView(): Promise<void>;
|
|
427
523
|
expandGanttFolder(): Promise<void>;
|
|
@@ -439,6 +535,8 @@ declare class ReleasePage extends WithPage {
|
|
|
439
535
|
expectTaskToHaveBeenDelayed(title: string): Promise<void>;
|
|
440
536
|
expectOnePhaseDisplayed(): Promise<void>;
|
|
441
537
|
restartPhases(): Promise<RestartPhaseModel>;
|
|
538
|
+
expectAddPhaseNotVisible(): Promise<void>;
|
|
539
|
+
expectAddTaskNotVisible(): Promise<void>;
|
|
442
540
|
}
|
|
443
541
|
declare class Phase extends WithPage {
|
|
444
542
|
commentBox: Locator;
|
|
@@ -459,6 +557,9 @@ declare class Phase extends WithPage {
|
|
|
459
557
|
expectToHaveTitle(phaseTitle: string): Promise<void>;
|
|
460
558
|
openContextMenuForTask(taskTitle: string): Promise<void>;
|
|
461
559
|
skipFromContextMenu(comment: string, taskTitle: string): Promise<void>;
|
|
560
|
+
completeFromContextMenu(taskTitle: string, comment: string): Promise<void>;
|
|
561
|
+
assignToMeFromContextMenu(taskTitle: string): Promise<void>;
|
|
562
|
+
duplicateFromContextMenu(taskTitle: string): Promise<void>;
|
|
462
563
|
expectTemplateLabelNotToBePresent(): Promise<void>;
|
|
463
564
|
openPhaseDetails(): Promise<void>;
|
|
464
565
|
close(): Promise<void>;
|
|
@@ -474,6 +575,8 @@ declare class Phase extends WithPage {
|
|
|
474
575
|
deleteTaskInPhase(taskName: string): Promise<void>;
|
|
475
576
|
deletePhase(phaseName: string): Promise<void>;
|
|
476
577
|
expectCompletedPhase(): Promise<void>;
|
|
578
|
+
clickViewAllCompletedPhase(): Promise<void>;
|
|
579
|
+
expectTaskToBePresent(taskName: string): Promise<void>;
|
|
477
580
|
}
|
|
478
581
|
declare class RestartPhaseModel extends WithPage {
|
|
479
582
|
continueBtn: Locator;
|
|
@@ -507,6 +610,7 @@ declare class FolderDeliveryPage extends WithPage {
|
|
|
507
610
|
filterDeliveryByName(deliveryName: string): Promise<void>;
|
|
508
611
|
editDelivery(deliveryName: string, newDeliveryName: string): Promise<void>;
|
|
509
612
|
deleteDelivery(deliveryName: string): Promise<void>;
|
|
613
|
+
expectDeliveryDisplayed(deliveryName: string): Promise<void>;
|
|
510
614
|
}
|
|
511
615
|
declare class FolderGroupsPage extends WithPage {
|
|
512
616
|
util: Util;
|
|
@@ -607,6 +711,8 @@ declare class FolderPage extends WithPage {
|
|
|
607
711
|
openRelease(): Promise<void>;
|
|
608
712
|
expectReleaseStarted(releaseName: string): Promise<void>;
|
|
609
713
|
openVariables(): Promise<VariablePage>;
|
|
714
|
+
openCustomDashboard(): Promise<void>;
|
|
715
|
+
openReleaseByName(releaseName: string): Promise<void>;
|
|
610
716
|
}
|
|
611
717
|
declare class GlobalVariable extends WithPage {
|
|
612
718
|
addListValue: Locator;
|
|
@@ -1119,7 +1225,49 @@ declare class SystemSettingsPage extends WithPage {
|
|
|
1119
1225
|
openWorkflowCategories(): Promise<void>;
|
|
1120
1226
|
openSMTPServer(): Promise<void>;
|
|
1121
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
|
+
}
|
|
1122
1269
|
declare class Navigation {
|
|
1270
|
+
connections: ConnectionsPage;
|
|
1123
1271
|
dataRandomGenerator: DataRandomGenerator;
|
|
1124
1272
|
dateUtil: DateUtil;
|
|
1125
1273
|
folderPage: FolderPage;
|
|
@@ -1140,6 +1288,7 @@ declare class Navigation {
|
|
|
1140
1288
|
releaseCalendarPage: ReleaseCalendarPage;
|
|
1141
1289
|
releaseGroupPage: ReleaseGroupPage;
|
|
1142
1290
|
releaseGroupTimelinePage: ReleaseGroupTimelinePage;
|
|
1291
|
+
releaseGanttPage: ReleaseGanttPage;
|
|
1143
1292
|
releaseListPage: ReleasesListPage;
|
|
1144
1293
|
rolesPage: RolesPage;
|
|
1145
1294
|
util: Util;
|
|
@@ -1149,6 +1298,7 @@ declare class Navigation {
|
|
|
1149
1298
|
openFolder(id: string): Promise<FolderPage>;
|
|
1150
1299
|
openVariablesOnReleasePage(releaseId: string): Promise<ReleaseVariablesPage>;
|
|
1151
1300
|
openRelease(id: string): Promise<ReleasePage>;
|
|
1301
|
+
openPlannerView(releaseId: string): Promise<ReleaseGanttPage>;
|
|
1152
1302
|
openApplicationsPage(): Promise<ApplicationsPage>;
|
|
1153
1303
|
openPersonalAccessTokenPage(): Promise<PersonalAccessTokenPage>;
|
|
1154
1304
|
gotoHomePage(): Promise<void>;
|
|
@@ -1171,6 +1321,7 @@ declare class Navigation {
|
|
|
1171
1321
|
collapseSideView(): Promise<void>;
|
|
1172
1322
|
expandSideView(): Promise<void>;
|
|
1173
1323
|
openRisksProfile(): Promise<void>;
|
|
1324
|
+
openConnection(): Promise<void>;
|
|
1174
1325
|
}
|
|
1175
1326
|
declare class LoginPage extends WithPage {
|
|
1176
1327
|
/**
|
|
@@ -1199,7 +1350,7 @@ interface BaseConfigurationItem {
|
|
|
1199
1350
|
type: string;
|
|
1200
1351
|
}
|
|
1201
1352
|
interface PlanItem extends BaseConfigurationItem {
|
|
1202
|
-
title
|
|
1353
|
+
title?: string;
|
|
1203
1354
|
}
|
|
1204
1355
|
interface Release extends PlanItem {
|
|
1205
1356
|
allowConcurrentReleasesFromTrigger: boolean;
|
|
@@ -1216,6 +1367,7 @@ interface Release extends PlanItem {
|
|
|
1216
1367
|
plannedDuration: number;
|
|
1217
1368
|
queryableEndDate?: Date;
|
|
1218
1369
|
queryableStartDate?: Date;
|
|
1370
|
+
realFlagStatus?: string;
|
|
1219
1371
|
scheduledStartDate?: Date;
|
|
1220
1372
|
scriptUserPassword?: string;
|
|
1221
1373
|
scriptUsername?: string;
|
|
@@ -1230,24 +1382,26 @@ interface Release extends PlanItem {
|
|
|
1230
1382
|
type VariableValues = Record<string, any>;
|
|
1231
1383
|
interface Variable extends BaseConfigurationItem {
|
|
1232
1384
|
description?: string;
|
|
1385
|
+
folderId?: any;
|
|
1233
1386
|
key: string;
|
|
1234
1387
|
label?: string;
|
|
1235
1388
|
multiline?: boolean;
|
|
1236
1389
|
requiresValue?: boolean;
|
|
1237
1390
|
showOnReleaseStart?: boolean;
|
|
1238
|
-
value?:
|
|
1391
|
+
value?: unknown;
|
|
1239
1392
|
valueProvider?: VariableValueProvider;
|
|
1240
1393
|
}
|
|
1241
1394
|
interface VariableValueProvider {
|
|
1242
1395
|
id: string;
|
|
1243
1396
|
type?: string;
|
|
1244
|
-
values?:
|
|
1397
|
+
values?: unknown;
|
|
1245
1398
|
variable: string;
|
|
1246
1399
|
}
|
|
1247
1400
|
interface Container extends PlanItem {
|
|
1248
1401
|
tasks: Array<Task>;
|
|
1249
1402
|
}
|
|
1250
1403
|
interface _Phase2 extends Container {
|
|
1404
|
+
color: string;
|
|
1251
1405
|
description: string;
|
|
1252
1406
|
dueDate?: Date;
|
|
1253
1407
|
endDate?: Date;
|
|
@@ -1272,6 +1426,7 @@ interface Folder extends PlanItem {
|
|
|
1272
1426
|
variables?: Array<Variable>;
|
|
1273
1427
|
}
|
|
1274
1428
|
interface Task extends PlanItem {
|
|
1429
|
+
addresses: Array<string>;
|
|
1275
1430
|
attachments: Array<Attachment>;
|
|
1276
1431
|
body?: string;
|
|
1277
1432
|
comments: Array<Comment>;
|
|
@@ -1284,6 +1439,8 @@ interface Task extends PlanItem {
|
|
|
1284
1439
|
flagStatus?: string;
|
|
1285
1440
|
folderId?: string;
|
|
1286
1441
|
links: Array<Link>;
|
|
1442
|
+
locked: boolean;
|
|
1443
|
+
newReleaseTitle?: string;
|
|
1287
1444
|
owner?: string;
|
|
1288
1445
|
plannedDuration: number;
|
|
1289
1446
|
precondition: string;
|
|
@@ -1296,10 +1453,14 @@ interface Task extends PlanItem {
|
|
|
1296
1453
|
tags?: Array<string>;
|
|
1297
1454
|
tasks: Array<Task>;
|
|
1298
1455
|
team: string;
|
|
1299
|
-
|
|
1456
|
+
templateId?: string;
|
|
1457
|
+
templateVariables?: Array<Variable>;
|
|
1458
|
+
variables?: Array<Variable>;
|
|
1300
1459
|
waitForScheduledStartDate?: boolean;
|
|
1301
1460
|
}
|
|
1302
|
-
|
|
1461
|
+
interface Condition extends PlanItem {
|
|
1462
|
+
checked?: boolean;
|
|
1463
|
+
}
|
|
1303
1464
|
type Link = PlanItem;
|
|
1304
1465
|
type Attachment = PlanItem;
|
|
1305
1466
|
interface Comment extends PlanItem {
|
|
@@ -1307,11 +1468,22 @@ interface Comment extends PlanItem {
|
|
|
1307
1468
|
date?: Date;
|
|
1308
1469
|
text?: string;
|
|
1309
1470
|
}
|
|
1310
|
-
interface Dashboard extends
|
|
1471
|
+
interface Dashboard extends BaseConfigurationItem {
|
|
1472
|
+
owner?: string;
|
|
1473
|
+
parentId?: string;
|
|
1311
1474
|
tiles: Array<Tile>;
|
|
1475
|
+
title?: string;
|
|
1312
1476
|
}
|
|
1313
1477
|
type ReleaseExtension = BaseConfigurationItem;
|
|
1314
|
-
|
|
1478
|
+
interface Tile extends BaseConfigurationItem {
|
|
1479
|
+
col: number;
|
|
1480
|
+
password?: string;
|
|
1481
|
+
row: number;
|
|
1482
|
+
title: string;
|
|
1483
|
+
username?: string;
|
|
1484
|
+
variableMapping: Record<string, any>;
|
|
1485
|
+
width: number;
|
|
1486
|
+
}
|
|
1315
1487
|
interface PythonScript extends BaseConfigurationItem {
|
|
1316
1488
|
customScriptTask: string;
|
|
1317
1489
|
result: string;
|
|
@@ -1344,14 +1516,18 @@ type DeepPartial<T> = {
|
|
|
1344
1516
|
};
|
|
1345
1517
|
type FixtureRelease = DeepPartial<Release> & Pick<Release, 'id'>;
|
|
1346
1518
|
interface FixtureConfiguration extends PlanItem {
|
|
1519
|
+
address?: string;
|
|
1347
1520
|
apiToken?: string;
|
|
1521
|
+
authenticationMethod?: string;
|
|
1348
1522
|
folderId?: string;
|
|
1349
1523
|
password?: string;
|
|
1524
|
+
port?: number;
|
|
1350
1525
|
proxyHost?: string;
|
|
1351
|
-
proxyPassword
|
|
1526
|
+
proxyPassword?: string;
|
|
1352
1527
|
proxyPort?: string;
|
|
1353
|
-
proxyUsername
|
|
1354
|
-
|
|
1528
|
+
proxyUsername?: string;
|
|
1529
|
+
scriptLocation?: string;
|
|
1530
|
+
url?: string;
|
|
1355
1531
|
username?: string;
|
|
1356
1532
|
}
|
|
1357
1533
|
interface FixtureCi extends PlanItem {
|
|
@@ -1376,6 +1552,7 @@ interface FixtureActivityLog extends PlanItem {
|
|
|
1376
1552
|
activityType: string;
|
|
1377
1553
|
eventTime: Date;
|
|
1378
1554
|
message: string;
|
|
1555
|
+
targetId: string;
|
|
1379
1556
|
username: string;
|
|
1380
1557
|
}
|
|
1381
1558
|
interface FixtureRoles {
|
|
@@ -1409,6 +1586,20 @@ interface ReleaseGroup extends PlanItem {
|
|
|
1409
1586
|
interface RiskProfile extends PlanItem {
|
|
1410
1587
|
riskProfileAssessors?: Array<RiskProfile>;
|
|
1411
1588
|
}
|
|
1589
|
+
interface Delivery extends PlanItem {
|
|
1590
|
+
deliveryPattern?: string;
|
|
1591
|
+
folderId: string;
|
|
1592
|
+
patternId?: string;
|
|
1593
|
+
patternTitle?: string;
|
|
1594
|
+
plannedDuration: number;
|
|
1595
|
+
shouldResetPattern?: boolean;
|
|
1596
|
+
stages: Array<Stage>;
|
|
1597
|
+
status: string;
|
|
1598
|
+
}
|
|
1599
|
+
interface Stage extends PlanItem {
|
|
1600
|
+
title: string;
|
|
1601
|
+
type: 'delivery.Stage';
|
|
1602
|
+
}
|
|
1412
1603
|
type ReleaseFixtures = {
|
|
1413
1604
|
fixtures: Fixtures;
|
|
1414
1605
|
loginPage: LoginPage;
|
|
@@ -1425,10 +1616,12 @@ declare class Fixtures {
|
|
|
1425
1616
|
addSystemTeams(teams: Array<FixtureTeam>): Array<FixtureTeam>;
|
|
1426
1617
|
folder(folder: Folder): Promise<APIResponse>;
|
|
1427
1618
|
createFolder(folderJson: Folder): Promise<APIResponse>;
|
|
1619
|
+
folderVariable(variable: any[]): Promise<APIResponse>;
|
|
1428
1620
|
trigger(trigger: FixtureTrigger): Promise<APIResponse>;
|
|
1429
1621
|
roles(rolePrincipals: FixtureRoles): Promise<APIResponse>;
|
|
1430
1622
|
permissions(rolePermissions: FixturePermissions): Promise<APIResponse>;
|
|
1431
1623
|
globalRoles(rolePrincipals: FixtureGlobalRole): Promise<APIResponse>;
|
|
1624
|
+
dashboard(dashboard: Dashboard): Promise<APIResponse>;
|
|
1432
1625
|
deleteGlobalRole(roleName: string): Promise<APIResponse>;
|
|
1433
1626
|
updateUserProfile(username: string, profile: any): Promise<APIResponse>;
|
|
1434
1627
|
deleteRole(roleName: string): Promise<APIResponse>;
|
|
@@ -1444,10 +1637,25 @@ declare class Fixtures {
|
|
|
1444
1637
|
addDefaultSmtpServer(): Promise<APIResponse>;
|
|
1445
1638
|
riskProfile(riskProfile: RiskProfile): Promise<APIResponse>;
|
|
1446
1639
|
deleteRiskProfile(riskProfileId: string): Promise<APIResponse>;
|
|
1640
|
+
createDeliveryPattern(delivery: Delivery, shouldResetPattern?: boolean): Promise<APIResponse>;
|
|
1641
|
+
createDelivery(delivery: Delivery): Promise<APIResponse>;
|
|
1642
|
+
deleteDelivery(delivery: Delivery): Promise<APIResponse>;
|
|
1447
1643
|
cleanAll(): Promise<void>;
|
|
1448
1644
|
addJiraTask(): Promise<string>;
|
|
1449
1645
|
addUser(username: string, password: string): Promise<void>;
|
|
1450
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>;
|
|
1451
1659
|
expectJiraTaskStatus(taskId: string, expectedStatus: string): Promise<void>;
|
|
1452
1660
|
expectJiraTaskSummary(taskId: string, expectedSummary: string): Promise<void>;
|
|
1453
1661
|
expectContainingAttachments(releaseId: string, tempFile: string): Promise<void>;
|