@digital-ai/devops-page-object-release 0.0.17 → 0.0.18
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 +11 -0
- package/dist/main.js +422 -56
- package/dist/main.js.map +1 -1
- package/dist/module.js +422 -56
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +90 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ declare class TaskDrawer extends WithPage {
|
|
|
130
130
|
skipMenu: Locator;
|
|
131
131
|
failMenu: Locator;
|
|
132
132
|
openMenu: Locator;
|
|
133
|
+
completeButton: Locator;
|
|
133
134
|
constructor(page: Page);
|
|
134
135
|
openOverviewRail(): Promise<void>;
|
|
135
136
|
openActivityRail(): Promise<void>;
|
|
@@ -143,11 +144,21 @@ declare class TaskDrawer extends WithPage {
|
|
|
143
144
|
retryTask(comment: string): Promise<void>;
|
|
144
145
|
skipTask(comment: string): Promise<void>;
|
|
145
146
|
failTask(comment: string): Promise<void>;
|
|
147
|
+
completeTask(comment: string): Promise<void>;
|
|
146
148
|
expectTaskTitle(taskTitle: string): Promise<void>;
|
|
147
149
|
expectTypeToContain(taskType: string): Promise<void>;
|
|
148
150
|
clickExpand(): Promise<void>;
|
|
149
151
|
clickShrink(): Promise<void>;
|
|
150
152
|
expectAssignedTo(username: string): Promise<void>;
|
|
153
|
+
expectStartNowButtonToBeVisible(): Promise<void>;
|
|
154
|
+
startNow(comment: string): Promise<void>;
|
|
155
|
+
expectCommentsToContain(text: string): Promise<void>;
|
|
156
|
+
switchWaitForScheduledDate(): Promise<void>;
|
|
157
|
+
expectWaitForScheduledDateToBeChecked(): Promise<void>;
|
|
158
|
+
expectWaitForScheduledDateToBeUnchecked(): Promise<void>;
|
|
159
|
+
clickOnStartDate(): Promise<void>;
|
|
160
|
+
removeStartDate(): Promise<void>;
|
|
161
|
+
setStartDate(date: string): Promise<void>;
|
|
151
162
|
assignToMe(userName: string, existingUsername: string): Promise<void>;
|
|
152
163
|
setFlag(flagName: string, flagComment: string): Promise<void>;
|
|
153
164
|
expectFlaggedWith(flagName: string, flagComment: string): Promise<void>;
|
|
@@ -190,6 +201,22 @@ declare class DateUtil extends WithPage {
|
|
|
190
201
|
expectDurationToBe(duration: string): Promise<void>;
|
|
191
202
|
setDuration(days?: string, hours?: string, mins?: string): Promise<void>;
|
|
192
203
|
expectTimeToBe(selector: string, format: string, date: Date | string): Promise<void>;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @returns Getting current month and year in the format "MonthName YYYY"
|
|
207
|
+
*/
|
|
208
|
+
getCurrentMonthYear(): Promise<string>;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @returns Getting current date in the format "dd MonthName YYYY"
|
|
212
|
+
*/
|
|
213
|
+
getCurrentDate(): Promise<string>;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @param days Number of days to add to current date within the current month
|
|
217
|
+
* @returns
|
|
218
|
+
*/
|
|
219
|
+
getFutureDate(days: number): Promise<string>;
|
|
193
220
|
}
|
|
194
221
|
declare class Util extends WithPage {
|
|
195
222
|
tempDir: string;
|
|
@@ -217,6 +244,7 @@ declare class ReleasePage extends WithPage {
|
|
|
217
244
|
start(): Promise<void>;
|
|
218
245
|
waitForCompletion(timeout: number): Promise<void>;
|
|
219
246
|
waitForTaskCompleted(taskTitle: string): Promise<void>;
|
|
247
|
+
waitForTaskCompletedInAdvance(taskTitle: string): Promise<void>;
|
|
220
248
|
waitForTaskInProgress(taskTitle: string): Promise<void>;
|
|
221
249
|
waitForTaskFailed(taskTitle: string): Promise<void>;
|
|
222
250
|
waitForTaskSkipped(taskTitle: string): Promise<void>;
|
|
@@ -225,6 +253,9 @@ declare class ReleasePage extends WithPage {
|
|
|
225
253
|
waitForStatusLine(statusLine: string): Promise<void>;
|
|
226
254
|
waitForTaskStarted(taskTitle: string): Promise<void>;
|
|
227
255
|
waitForTaskPlanned(title: string): Promise<void>;
|
|
256
|
+
expectTaskCompletedInAdvance(taskTitle: string): Promise<void>;
|
|
257
|
+
expectTaskPending(taskTitle: string): Promise<void>;
|
|
258
|
+
expectCurrentTaskToContain(taskTitle: string): Promise<void>;
|
|
228
259
|
openManualTaskDetails(title: string): Promise<void>;
|
|
229
260
|
reopenTask(comment: string): Promise<void>;
|
|
230
261
|
openTaskDrawer(taskName: string): Promise<TaskDrawer>;
|
|
@@ -254,17 +285,23 @@ declare class ReleasePage extends WithPage {
|
|
|
254
285
|
declare class Phase extends WithPage {
|
|
255
286
|
commentBox: Locator;
|
|
256
287
|
confirm: Locator;
|
|
288
|
+
contextMenuButton: Locator;
|
|
257
289
|
dateUtil: DateUtil;
|
|
258
290
|
constructor(page: Page, phaseName: string);
|
|
259
291
|
setTitle(title: string): Promise<void>;
|
|
292
|
+
isMenuItemEnabled(menuName: string, taskTitle: string): Promise<void>;
|
|
293
|
+
isMenuItemDisabled(menuName: string, taskTitle: string): Promise<void>;
|
|
294
|
+
expectMenuItemIsNotVisible(menuName: string, taskTitle: string): Promise<void>;
|
|
295
|
+
expectMenuItemIsVisible(menuName: string, taskTitle: string): Promise<void>;
|
|
296
|
+
closeContextMenu(): Promise<void>;
|
|
260
297
|
expectTaskBorderWithColor(taskName: string, color: string): Promise<void>;
|
|
261
298
|
addTaskInPhase(taskTitle: string, taskGroup: string, taskType: string): Promise<void>;
|
|
262
299
|
getNumberOfTasks(): Promise<number>;
|
|
263
300
|
expectToHaveNoneditableTitle(phaseTitle: string): Promise<void>;
|
|
264
301
|
expectToHaveTitle(phaseTitle: string): Promise<void>;
|
|
265
|
-
expectTemplateLabelNotToBePresent(): Promise<void>;
|
|
266
302
|
openContextMenuForTask(taskTitle: string): Promise<void>;
|
|
267
303
|
skipFromContextMenu(comment: string, taskTitle: string): Promise<void>;
|
|
304
|
+
expectTemplateLabelNotToBePresent(): Promise<void>;
|
|
268
305
|
openPhaseDetails(): Promise<void>;
|
|
269
306
|
close(): Promise<void>;
|
|
270
307
|
expectStartDateToBeDisplayed(): Promise<void>;
|
|
@@ -321,16 +358,43 @@ declare class Properties extends WithPage {
|
|
|
321
358
|
editDuration(month: number, days: number, hours: number): Promise<void>;
|
|
322
359
|
save(): Promise<void>;
|
|
323
360
|
}
|
|
361
|
+
declare class FolderGroupsPage extends WithPage {
|
|
362
|
+
util: Util;
|
|
363
|
+
newReleaseGroupButton: Locator;
|
|
364
|
+
dateUtil: DateUtil;
|
|
365
|
+
dateMonth: Date;
|
|
366
|
+
constructor(page: Page);
|
|
367
|
+
createGroup(groupName: string, startDate?: string, endDate?: string): Promise<void>;
|
|
368
|
+
addReleaseToGroup(releaseName: string): Promise<void>;
|
|
369
|
+
editReleaseGroupName(newGroupName: string): Promise<void>;
|
|
370
|
+
enterGroupName(groupName: string): Promise<void>;
|
|
371
|
+
enterStartDate(date: string, monthYear: string): Promise<void>;
|
|
372
|
+
enterEndDate(date: string, monthYear: string): Promise<void>;
|
|
373
|
+
clickCreate(): Promise<void>;
|
|
374
|
+
expectSuccessMessageOnReleaseGroupCreation(): Promise<void>;
|
|
375
|
+
expectSuccessMessageOnAddingReleaseToGroup(): Promise<void>;
|
|
376
|
+
expectSuccessMessageOnUpdatingGroup(): Promise<void>;
|
|
377
|
+
searchReleaseGroupByTitle(title: string): Promise<void>;
|
|
378
|
+
deleteReleaseGroup(title: string): Promise<void>;
|
|
379
|
+
clickReleaseGroupEdit(title: string): Promise<void>;
|
|
380
|
+
clickSave(): Promise<void>;
|
|
381
|
+
clickCancel(): Promise<void>;
|
|
382
|
+
clickOnStatusField(): Promise<void>;
|
|
383
|
+
statusFilter(statusNames: string[]): Promise<void>;
|
|
384
|
+
clickOnStatusClearAll(): Promise<void>;
|
|
385
|
+
clickOnStatusSelectAll(): Promise<void>;
|
|
386
|
+
}
|
|
324
387
|
declare class FolderPage extends WithPage {
|
|
325
388
|
expandButton: Locator;
|
|
326
389
|
patternPage: FolderPatternPage;
|
|
390
|
+
folderGroupsPage: FolderGroupsPage;
|
|
327
391
|
util: Util;
|
|
328
392
|
constructor(page: Page);
|
|
329
393
|
openFoldersPage(): Promise<this>;
|
|
330
394
|
backToAllFolders(): Promise<this>;
|
|
331
395
|
createFolder(folderName: string): Promise<this>;
|
|
332
396
|
openFolder(folderName: string): Promise<this>;
|
|
333
|
-
openGroups(): Promise<
|
|
397
|
+
openGroups(): Promise<FolderGroupsPage>;
|
|
334
398
|
createGroup(groupName: string): Promise<this>;
|
|
335
399
|
selectPlannedStatus(): Promise<this>;
|
|
336
400
|
expectReleaseGroupisDisplayed(title: string): Promise<this>;
|
|
@@ -340,6 +404,7 @@ declare class FolderPage extends WithPage {
|
|
|
340
404
|
searchFolderByName(folderName: string): Promise<void>;
|
|
341
405
|
openPatterns(): Promise<FolderPatternPage>;
|
|
342
406
|
clickFolderOptions(folderName: string, option: string): Promise<void>;
|
|
407
|
+
clickExpandButton(): Promise<void>;
|
|
343
408
|
}
|
|
344
409
|
declare class GlobalVariable extends WithPage {
|
|
345
410
|
addListValue: Locator;
|
|
@@ -479,7 +544,24 @@ declare class TaskListPage extends WithPage {
|
|
|
479
544
|
expectReleaseLinksDisplayed(releaseTitle: string, displayed?: boolean): Promise<void>;
|
|
480
545
|
openTaskList(): Promise<void>;
|
|
481
546
|
clickOnAssigneeButton(title: string): Promise<void>;
|
|
482
|
-
|
|
547
|
+
clickOnAssignedToMe(): Promise<void>;
|
|
548
|
+
clickOnAssignedToMyTeams(): Promise<void>;
|
|
549
|
+
clickOnAssignedToAllAvailable(): Promise<void>;
|
|
550
|
+
expectTaskToNotBeDisplayed(taskTitle: string): Promise<void>;
|
|
551
|
+
expectTaskToBeDisplayed(taskTitle: string): Promise<void>;
|
|
552
|
+
expectTasksToBeDisplayed(tasks: {
|
|
553
|
+
[key: string]: boolean;
|
|
554
|
+
}): Promise<void>;
|
|
555
|
+
expectTasksDisplayedInOrder(expectedTasks: {
|
|
556
|
+
releaseTitle: string;
|
|
557
|
+
taskPosition: number;
|
|
558
|
+
taskTitle: string;
|
|
559
|
+
}[]): Promise<void>;
|
|
560
|
+
setOrderBy(orderBy: string): Promise<void>;
|
|
561
|
+
expectTaskCountForRelease(releaseTitle: string, expectedCount: number): Promise<void>;
|
|
562
|
+
setSearchFilter(filterText: string): Promise<void>;
|
|
563
|
+
clearSearchFilter(): Promise<void>;
|
|
564
|
+
setTagsFilter(filterText: string): Promise<void>;
|
|
483
565
|
clickOnStatusField(): Promise<void>;
|
|
484
566
|
clickOnStatus(statusNames: string[]): Promise<void>;
|
|
485
567
|
clickOnStatusClearAll(): Promise<void>;
|
|
@@ -589,6 +671,8 @@ declare class TemplateListPage extends WithPage {
|
|
|
589
671
|
filterByTitle(templateName: string): Promise<void>;
|
|
590
672
|
}
|
|
591
673
|
declare class Navigation {
|
|
674
|
+
dataRandomGenerator: DataRandomGenerator;
|
|
675
|
+
dateUtil: DateUtil;
|
|
592
676
|
folderPage: FolderPage;
|
|
593
677
|
globalvariable: GlobalVariable;
|
|
594
678
|
homePage: HomePage;
|
|
@@ -732,6 +816,7 @@ interface Task extends PlanItem {
|
|
|
732
816
|
owner?: string;
|
|
733
817
|
precondition: string;
|
|
734
818
|
pythonScript?: PythonScript;
|
|
819
|
+
scheduledStartDate?: Date;
|
|
735
820
|
script: string;
|
|
736
821
|
startDate?: Date;
|
|
737
822
|
status: TaskStatus;
|
|
@@ -739,6 +824,7 @@ interface Task extends PlanItem {
|
|
|
739
824
|
tasks: Array<Task>;
|
|
740
825
|
team: string;
|
|
741
826
|
templateVariables: Array<Variable>;
|
|
827
|
+
waitForScheduledStartDate?: boolean;
|
|
742
828
|
}
|
|
743
829
|
type Condition = PlanItem;
|
|
744
830
|
type Link = PlanItem;
|
|
@@ -832,6 +918,7 @@ declare class Fixtures {
|
|
|
832
918
|
trigger(trigger: FixtureTrigger): Promise<APIResponse>;
|
|
833
919
|
roles(rolePrincipals: FixtureRoles): Promise<APIResponse>;
|
|
834
920
|
permissions(rolePermissions: FixturePermissions): Promise<APIResponse>;
|
|
921
|
+
updateUserProfile(username: string, profile: any): Promise<APIResponse>;
|
|
835
922
|
deleteRole(roleName: string): Promise<APIResponse>;
|
|
836
923
|
deleteArchivedRelease(id: string): Promise<APIResponse>;
|
|
837
924
|
deleteRelease(id: string): Promise<APIResponse>;
|