@digital-ai/devops-page-object-release 0.0.14 → 0.0.16
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 +20 -0
- package/dist/main.js +425 -11
- package/dist/main.js.map +1 -1
- package/dist/module.js +425 -11
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +95 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -134,6 +134,10 @@ declare class TaskDrawer extends WithPage {
|
|
|
134
134
|
expectTypeToContain(taskType: string): Promise<void>;
|
|
135
135
|
clickExpand(): Promise<void>;
|
|
136
136
|
clickShrink(): Promise<void>;
|
|
137
|
+
expectAssignedTo(username: string): Promise<void>;
|
|
138
|
+
assignToMe(userName: string, existingUsername: string): Promise<void>;
|
|
139
|
+
setFlag(flagName: string, flagComment: string): Promise<void>;
|
|
140
|
+
expectFlaggedWith(flagName: string, flagComment: string): Promise<void>;
|
|
137
141
|
}
|
|
138
142
|
declare class ReleasePropertiesPage extends WithPage {
|
|
139
143
|
constructor(page: Page);
|
|
@@ -144,6 +148,21 @@ declare class ReleasePropertiesPage extends WithPage {
|
|
|
144
148
|
save(): Promise<void>;
|
|
145
149
|
reset(): Promise<void>;
|
|
146
150
|
expectWithAttachment(filename: string): Promise<void>;
|
|
151
|
+
getAttachmentsListCount(): Promise<number>;
|
|
152
|
+
uploadFile(filePath: string): Promise<void>;
|
|
153
|
+
expectWithNoAttachment(filename: string): Promise<void>;
|
|
154
|
+
downloadFile(filename: string): Promise<void>;
|
|
155
|
+
deleteAttachment(fileName: string): Promise<void>;
|
|
156
|
+
expectVariableDisplayed(variable: string, present: boolean): Promise<void>;
|
|
157
|
+
setScheduledStartDate(date?: string, monthYear?: string): Promise<void>;
|
|
158
|
+
setScheduledStartTime(hrs?: string, mins?: string, meridian?: string): Promise<void>;
|
|
159
|
+
setDuration(days?: string, hours?: string, mins?: string): Promise<void>;
|
|
160
|
+
expectScheduledStartDateToBe(date: string): Promise<void>;
|
|
161
|
+
expectScheduledStartTimeToBe(date: string): Promise<void>;
|
|
162
|
+
expectDueDateToBe(date: string): Promise<void>;
|
|
163
|
+
expectedDueDateTime(time: string): Promise<void>;
|
|
164
|
+
expectDurationToBe(duration: string): Promise<void>;
|
|
165
|
+
setDueDate(hrs?: string, min?: string, meridian?: string): Promise<void>;
|
|
147
166
|
}
|
|
148
167
|
declare class ReleasePage extends WithPage {
|
|
149
168
|
taskDrawer: TaskDrawer;
|
|
@@ -153,6 +172,9 @@ declare class ReleasePage extends WithPage {
|
|
|
153
172
|
openTriggers(): Promise<TriggersPage>;
|
|
154
173
|
abort(comment?: string): Promise<void>;
|
|
155
174
|
getPhase(phaseName: string): Phase;
|
|
175
|
+
expectNotFlagged(): Promise<void>;
|
|
176
|
+
expectFlagOnTaskCard(): Promise<void>;
|
|
177
|
+
refresh(): Promise<void>;
|
|
156
178
|
start(): Promise<void>;
|
|
157
179
|
waitForCompletion(timeout: number): Promise<void>;
|
|
158
180
|
waitForTaskCompleted(taskTitle: string): Promise<void>;
|
|
@@ -161,6 +183,9 @@ declare class ReleasePage extends WithPage {
|
|
|
161
183
|
waitForTaskAborted(taskTitle: string): Promise<void>;
|
|
162
184
|
waitForStatusLine(statusLine: string): Promise<void>;
|
|
163
185
|
waitForTaskStarted(taskTitle: string): Promise<void>;
|
|
186
|
+
waitForTaskPlanned(title: string): Promise<void>;
|
|
187
|
+
openManualTaskDetails(title: string): Promise<void>;
|
|
188
|
+
reopenTask(comment: string): Promise<void>;
|
|
164
189
|
openTaskDrawer(taskName: string): Promise<TaskDrawer>;
|
|
165
190
|
openTaskDrawerFromTableView(taskName: string): Promise<TaskDrawer>;
|
|
166
191
|
openTaskDrawerFromGrantt(taskName: string): Promise<TaskDrawer>;
|
|
@@ -178,6 +203,8 @@ declare class ReleasePage extends WithPage {
|
|
|
178
203
|
openTableView(): Promise<void>;
|
|
179
204
|
openPlannerView(): Promise<void>;
|
|
180
205
|
expandGanttFolder(): Promise<void>;
|
|
206
|
+
expectTitleToBeInBreadcrumbLink(title: string): Promise<void>;
|
|
207
|
+
expectHasPhase(title: string): Promise<void>;
|
|
181
208
|
}
|
|
182
209
|
declare class Phase extends WithPage {
|
|
183
210
|
constructor(page: Page, phaseName: string);
|
|
@@ -262,12 +289,24 @@ declare class TaskListPage extends WithPage {
|
|
|
262
289
|
taskDrawer: TaskDrawer;
|
|
263
290
|
constructor(page: Page);
|
|
264
291
|
openTask(taskName: string): Promise<void>;
|
|
292
|
+
skip(taskName: string, comment: string): Promise<void>;
|
|
293
|
+
waitForTaskInProgress(taskName: string): Promise<void>;
|
|
294
|
+
openTaskInReleaseView(taskName: string): Promise<void>;
|
|
295
|
+
openCalendarViaTaskDueDate(taskName: string): Promise<void>;
|
|
296
|
+
openTaskDrawer(taskName: string): Promise<void>;
|
|
265
297
|
filterTaskByTitle(taskname: string): Promise<void>;
|
|
266
298
|
filterTasksByTag(tag: string, taskTitleForValidation: string): Promise<void>;
|
|
267
299
|
filterTasksByReleaseTitle(releaseTitle: string): Promise<void>;
|
|
268
300
|
openSingleTask(taskId: string, showDetails?: boolean): Promise<void>;
|
|
269
301
|
expectReleaseLinksDisplayed(releaseTitle: string, displayed?: boolean): Promise<void>;
|
|
302
|
+
openTaskList(): Promise<void>;
|
|
303
|
+
clickOnAssigneeButton(title: string): Promise<void>;
|
|
304
|
+
assignTaskToMe(title: string): Promise<void>;
|
|
305
|
+
expectTaskAssignedToMe(title: string): Promise<void>;
|
|
306
|
+
expectTaskAssignedTo(title: string, user: string): Promise<void>;
|
|
270
307
|
expectTaskTitle(taskTitle: string): Promise<void>;
|
|
308
|
+
expectGroupView(expected?: boolean): Promise<void>;
|
|
309
|
+
changeGroupView(): Promise<void>;
|
|
271
310
|
}
|
|
272
311
|
declare class TempFile extends WithPage {
|
|
273
312
|
tempDir: string;
|
|
@@ -339,6 +378,32 @@ declare class TemplateListPage extends WithPage {
|
|
|
339
378
|
clickCreateNewTemplate(): Promise<void>;
|
|
340
379
|
openTemplateByName(templateName: string): Promise<void>;
|
|
341
380
|
}
|
|
381
|
+
declare class ReleaseGroupPage extends WithPage {
|
|
382
|
+
setStatus(status: string): Promise<void>;
|
|
383
|
+
openReleaseGroup(title: string): Promise<void>;
|
|
384
|
+
expectReleaseGroupStatus(status: string): Promise<void>;
|
|
385
|
+
expectReleaseGroupDisplayed(title: string): Promise<void>;
|
|
386
|
+
expectReleaseGroupNotDisplayed(title: string): Promise<void>;
|
|
387
|
+
searchReleaseGroupByTitle(title: string): Promise<void>;
|
|
388
|
+
deleteReleaseGroup(title: string): Promise<void>;
|
|
389
|
+
clickReleaseGroupEdit(title: string): Promise<void>;
|
|
390
|
+
enterReleaseGroupDetails(new_title: string): Promise<void>;
|
|
391
|
+
clickSaveButton(): Promise<void>;
|
|
392
|
+
clickCancelButton(): Promise<void>;
|
|
393
|
+
}
|
|
394
|
+
declare class ReleaseGroupTimelinePage extends WithPage {
|
|
395
|
+
expectReleaseDisplayed(title: string): Promise<void>;
|
|
396
|
+
expectReleaseNotDisplayed(title: string): Promise<void>;
|
|
397
|
+
expectPhaseDisplayed(title: string): Promise<void>;
|
|
398
|
+
openContextMenu(title: string): Promise<void>;
|
|
399
|
+
removeFromReleaseGroup(): Promise<void>;
|
|
400
|
+
expectNumberOfReleases(num_of_release: number): Promise<void>;
|
|
401
|
+
openAddReleaseList(): Promise<void>;
|
|
402
|
+
filterReleases(title: string): Promise<void>;
|
|
403
|
+
expectNumberOfReleasesOnModal(num_of_release: number): Promise<void>;
|
|
404
|
+
selectAllReleaseCheckbox(): Promise<void>;
|
|
405
|
+
addReleasesToGroup(): Promise<void>;
|
|
406
|
+
}
|
|
342
407
|
declare class Navigation {
|
|
343
408
|
releasePage: ReleasePage;
|
|
344
409
|
settingsMenu: SettingsMenu;
|
|
@@ -350,6 +415,8 @@ declare class Navigation {
|
|
|
350
415
|
templateListPage: TemplateListPage;
|
|
351
416
|
releaseCalendarPage: ReleaseCalendarPage;
|
|
352
417
|
releaseListPage: ReleasesListPage;
|
|
418
|
+
releaseGroupPage: ReleaseGroupPage;
|
|
419
|
+
releaseGroupTimelinePage: ReleaseGroupTimelinePage;
|
|
353
420
|
util: TempFile;
|
|
354
421
|
constructor(page: Page);
|
|
355
422
|
openTemplate(id: string): Promise<ReleasePage>;
|
|
@@ -395,6 +462,7 @@ declare class LoginPage extends WithPage {
|
|
|
395
462
|
* @param username
|
|
396
463
|
*/
|
|
397
464
|
expectToBeLogged(username: string): Promise<void>;
|
|
465
|
+
closePendoModalWindow(): Promise<void>;
|
|
398
466
|
}
|
|
399
467
|
interface BaseConfigurationItem {
|
|
400
468
|
id: string;
|
|
@@ -466,14 +534,19 @@ interface Task extends PlanItem {
|
|
|
466
534
|
conditions: Array<Condition>;
|
|
467
535
|
dependencies: Array<_Dependency1>;
|
|
468
536
|
description?: string;
|
|
537
|
+
dueDate?: Date;
|
|
538
|
+
endDate?: Date;
|
|
539
|
+
flagStatus?: string;
|
|
469
540
|
links: Array<Link>;
|
|
470
541
|
owner?: string;
|
|
471
542
|
precondition: string;
|
|
472
543
|
pythonScript?: PythonScript;
|
|
473
544
|
script: string;
|
|
545
|
+
startDate?: Date;
|
|
474
546
|
status: TaskStatus;
|
|
475
547
|
tags?: Array<string>;
|
|
476
548
|
tasks: Array<Task>;
|
|
549
|
+
team: string;
|
|
477
550
|
templateVariables: Array<Variable>;
|
|
478
551
|
}
|
|
479
552
|
type Condition = PlanItem;
|
|
@@ -533,6 +606,24 @@ interface FixtureActivityLog extends PlanItem {
|
|
|
533
606
|
message: string;
|
|
534
607
|
username: string;
|
|
535
608
|
}
|
|
609
|
+
interface FixtureRoles {
|
|
610
|
+
principals?: Array<string>;
|
|
611
|
+
role?: Array<FixtureRole>;
|
|
612
|
+
}
|
|
613
|
+
interface FixtureRole {
|
|
614
|
+
id: number;
|
|
615
|
+
name: string;
|
|
616
|
+
}
|
|
617
|
+
interface FixturePermissions {
|
|
618
|
+
permissions?: Array<string>;
|
|
619
|
+
role?: Array<FixtureRole>;
|
|
620
|
+
}
|
|
621
|
+
interface ReleaseGroup extends PlanItem {
|
|
622
|
+
endDate: Date;
|
|
623
|
+
folderId: string;
|
|
624
|
+
releaseIds?: Array<string>;
|
|
625
|
+
startDate: Date;
|
|
626
|
+
}
|
|
536
627
|
type ReleaseFixtures = {
|
|
537
628
|
fixtures: Fixtures;
|
|
538
629
|
loginPage: LoginPage;
|
|
@@ -548,6 +639,9 @@ declare class Fixtures {
|
|
|
548
639
|
folder(folder: Folder): Promise<APIResponse>;
|
|
549
640
|
createFolder(folderJson: Folder): Promise<APIResponse>;
|
|
550
641
|
trigger(trigger: FixtureTrigger): Promise<APIResponse>;
|
|
642
|
+
roles(rolePrincipals: FixtureRoles): Promise<APIResponse>;
|
|
643
|
+
permissions(rolePermissions: FixturePermissions): Promise<APIResponse>;
|
|
644
|
+
deleteRole(roleName: string): Promise<APIResponse>;
|
|
551
645
|
deleteArchivedRelease(id: string): Promise<APIResponse>;
|
|
552
646
|
deleteRelease(id: string): Promise<APIResponse>;
|
|
553
647
|
deleteUser(username: string): Promise<APIResponse>;
|
|
@@ -573,6 +667,7 @@ declare class Fixtures {
|
|
|
573
667
|
preArchiveRelease(releaseId: string): Promise<APIResponse>;
|
|
574
668
|
setFeatures(features: Array<FixtureFeature>): Promise<APIResponse>;
|
|
575
669
|
enableTaskDrawer(enabled: boolean): Promise<APIResponse>;
|
|
670
|
+
createReleaseGroup(releaseGroup: ReleaseGroup): Promise<APIResponse>;
|
|
576
671
|
}
|
|
577
672
|
|
|
578
673
|
//# sourceMappingURL=types.d.ts.map
|