@digital-ai/devops-page-object-release 0.0.12 → 0.0.13
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 +10 -0
- package/dist/main.js +305 -14
- package/dist/main.js.map +1 -1
- package/dist/module.js +305 -14
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +76 -13
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare class WithPage {
|
|
|
7
7
|
declare class ReleasesListPage extends WithPage {
|
|
8
8
|
expectNumberOfReleases(releaseTitle: string, amount: number): Promise<void>;
|
|
9
9
|
openReleaseByName(releaseTitle: string): Promise<ReleasePage>;
|
|
10
|
+
filterReleaseByTitle(releaseTitle: string): Promise<void>;
|
|
10
11
|
}
|
|
11
12
|
declare class TriggersPage extends WithPage {
|
|
12
13
|
openRelatedReleasesOf(title: string): Promise<ReleasesListPage>;
|
|
@@ -47,17 +48,61 @@ declare class ConditionRail extends WithPage {
|
|
|
47
48
|
}
|
|
48
49
|
declare class OverviewRail extends WithPage {
|
|
49
50
|
railLocator: Locator;
|
|
51
|
+
dependency: Dependency;
|
|
50
52
|
constructor(page: Page);
|
|
53
|
+
openInputProperties(): Promise<void>;
|
|
54
|
+
openOutputProperties(): Promise<void>;
|
|
55
|
+
getValueFromCi(propertyName: string): Promise<string>;
|
|
56
|
+
getAllOptionsFromCi(propertyName: string): Promise<string[]>;
|
|
57
|
+
setValueFromCi(propertyName: string, value: string): Promise<void>;
|
|
58
|
+
getValueFromString(propertyName: string): Promise<string | null>;
|
|
59
|
+
setValueFromString(propertyName: string, value: string): Promise<void>;
|
|
60
|
+
setValueFromLargeString(propertyName: string, value: string): Promise<void>;
|
|
61
|
+
setValueFromPassword(propertyName: string, value: string): Promise<void>;
|
|
62
|
+
setAndCreateVariable(propertyName: string, variableName: string): Promise<void>;
|
|
63
|
+
setVariable(propertyName: string, variableName: string): Promise<void>;
|
|
64
|
+
expectValueFromString(propertyName: string, propertyValue: string): Promise<void>;
|
|
51
65
|
setValueFromMap(propertyName: string, key: string, value: string): Promise<void>;
|
|
52
66
|
setScript(script: string): Promise<void>;
|
|
53
67
|
expectScriptToContain(script: string): Promise<void>;
|
|
68
|
+
enterScriptForAutoComplete(script: string): Promise<void>;
|
|
69
|
+
openScriptEditorInSeparateWindow(): Promise<void>;
|
|
70
|
+
closeFullscreenScriptWindowWithESC(): Promise<void>;
|
|
71
|
+
closeFullscreenScriptWindow(): Promise<void>;
|
|
54
72
|
abort(comment: string): Promise<void>;
|
|
73
|
+
expectDependenciesDisplayed(dependencies: any[]): Promise<void>;
|
|
74
|
+
expectCanDeleteDependency(title: string, canDelete?: boolean): Promise<void>;
|
|
75
|
+
getDependencyCount(): Promise<number>;
|
|
76
|
+
addDependency(): Promise<void>;
|
|
77
|
+
expectDependencyText(dependencies: string): Promise<void>;
|
|
78
|
+
clickEditDependency(dependencies: string): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
declare class Dependency extends WithPage {
|
|
81
|
+
constructor(page: Page);
|
|
82
|
+
getRelease(): Promise<any>;
|
|
83
|
+
getPhase(): Promise<any>;
|
|
84
|
+
getTask(): Promise<any>;
|
|
85
|
+
setRelease(releaseTitle: string): Promise<void>;
|
|
86
|
+
save(): Promise<void>;
|
|
87
|
+
setPhase(phaseTitle: string): Promise<void>;
|
|
88
|
+
setTask(taskTitle: string): Promise<void>;
|
|
89
|
+
clearPhase(): Promise<void>;
|
|
90
|
+
expectVariableModeEnabled(mode: boolean): Promise<void>;
|
|
91
|
+
clickVariable(): Promise<void>;
|
|
92
|
+
expectMinimumOptions(options: any[]): Promise<void>;
|
|
93
|
+
enterNewVariable(variablename: string): Promise<void>;
|
|
94
|
+
selectVariable(variablename: string): Promise<void>;
|
|
55
95
|
}
|
|
56
96
|
declare class ActivityRail extends WithPage {
|
|
57
97
|
expectCommentToContain(text: string): Promise<void>;
|
|
58
98
|
}
|
|
59
99
|
declare class AttachmentRail extends WithPage {
|
|
60
100
|
expectWithAttachment(filename: string): Promise<void>;
|
|
101
|
+
getAttachmentsListCount(): Promise<number>;
|
|
102
|
+
uploadFile(filePath: string): Promise<void>;
|
|
103
|
+
downloadFile(filename: string): Promise<void>;
|
|
104
|
+
deleteAttachment(fileName: string): Promise<void>;
|
|
105
|
+
expectWithNoAttachment(tempFile: string): Promise<void>;
|
|
61
106
|
}
|
|
62
107
|
type Rail = 'Overview' | 'Activity' | 'Config' | 'Scheduling' | 'Conditions' | 'Attributes' | 'Attach' | 'Tags';
|
|
63
108
|
declare class TaskDrawer extends WithPage {
|
|
@@ -84,6 +129,7 @@ declare class TaskDrawer extends WithPage {
|
|
|
84
129
|
close(): Promise<void>;
|
|
85
130
|
retryTask(comment: string): Promise<void>;
|
|
86
131
|
skipTask(comment: string): Promise<void>;
|
|
132
|
+
expectTaskTitle(taskTitle: string): Promise<void>;
|
|
87
133
|
}
|
|
88
134
|
declare class ReleasePropertiesPage extends WithPage {
|
|
89
135
|
constructor(page: Page);
|
|
@@ -267,6 +313,7 @@ interface Release extends PlanItem {
|
|
|
267
313
|
dueDate?: Date;
|
|
268
314
|
endDate?: Date;
|
|
269
315
|
extensions: Array<ReleaseExtension>;
|
|
316
|
+
flagStatus?: string;
|
|
270
317
|
owner?: string;
|
|
271
318
|
passwordVariableValues?: VariableValues;
|
|
272
319
|
phases: Array<_Phase1>;
|
|
@@ -278,6 +325,7 @@ interface Release extends PlanItem {
|
|
|
278
325
|
startDate?: Date;
|
|
279
326
|
status: ReleaseStatus;
|
|
280
327
|
summary?: Dashboard;
|
|
328
|
+
tags?: Array<string>;
|
|
281
329
|
teams: Array<Team>;
|
|
282
330
|
variableValues?: VariableValues;
|
|
283
331
|
variables: Array<Variable>;
|
|
@@ -300,22 +348,37 @@ interface Container extends PlanItem {
|
|
|
300
348
|
interface _Phase1 extends Container {
|
|
301
349
|
status: PhaseStatus;
|
|
302
350
|
}
|
|
351
|
+
interface _Dependency1 extends PlanItem {
|
|
352
|
+
archivedAsResolved: boolean;
|
|
353
|
+
archivedTargetId: string;
|
|
354
|
+
archivedTargetTitle: string;
|
|
355
|
+
target: {
|
|
356
|
+
id: string;
|
|
357
|
+
type: string;
|
|
358
|
+
};
|
|
359
|
+
targetId: string;
|
|
360
|
+
}
|
|
361
|
+
interface Folder extends PlanItem {
|
|
362
|
+
children?: Array<Folder>;
|
|
363
|
+
teams?: Array<Team>;
|
|
364
|
+
}
|
|
303
365
|
interface Task extends PlanItem {
|
|
304
366
|
attachments: Array<Attachment>;
|
|
305
367
|
comments: Array<Comment>;
|
|
306
368
|
conditions: Array<Condition>;
|
|
307
|
-
dependencies: Array<
|
|
369
|
+
dependencies: Array<_Dependency1>;
|
|
370
|
+
description?: string;
|
|
308
371
|
links: Array<Link>;
|
|
309
372
|
owner?: string;
|
|
310
373
|
precondition: string;
|
|
311
374
|
pythonScript?: PythonScript;
|
|
312
375
|
script: string;
|
|
313
376
|
status: TaskStatus;
|
|
377
|
+
tags?: Array<string>;
|
|
314
378
|
tasks: Array<Task>;
|
|
315
379
|
templateVariables: Array<Variable>;
|
|
316
380
|
}
|
|
317
381
|
type Condition = PlanItem;
|
|
318
|
-
type Dependency = PlanItem;
|
|
319
382
|
type Link = PlanItem;
|
|
320
383
|
type Comment = PlanItem;
|
|
321
384
|
type Attachment = PlanItem;
|
|
@@ -330,7 +393,11 @@ interface PythonScript extends BaseConfigurationItem {
|
|
|
330
393
|
type ReleaseStatus = 'TEMPLATE' | 'PLANNED' | 'IN_PROGRESS' | 'PAUSED' | 'FAILING' | 'FAILED' | 'COMPLETED' | 'ABORTED';
|
|
331
394
|
type PhaseStatus = 'PLANNED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILING' | 'FAILED' | 'SKIPPED' | 'ABORTED';
|
|
332
395
|
type TaskStatus = 'IN_PROGRESS' | 'PLANNED' | 'SKIPPED_IN_ADVANCE' | 'COMPLETED_IN_ADVANCE' | 'COMPLETED' | 'SKIPPED' | 'ABORTED' | 'PENDING' | 'FACET_CHECK_IN_PROGRESS' | 'FAILED' | 'FAILING' | 'FAILURE_HANDLER_IN_PROGRESS' | 'ABORT_SCRIPT_IN_PROGRESS' | 'PRECONDITION_IN_PROGRESS' | 'QUEUED' | 'ABORT_SCRIPT_QUEUED' | 'WAITING_FOR_INPUT' | 'FAILURE_HANDLER_QUEUED';
|
|
333
|
-
|
|
396
|
+
interface Team extends PlanItem {
|
|
397
|
+
members: Array<string>;
|
|
398
|
+
permissions: Array<string>;
|
|
399
|
+
teamName: string;
|
|
400
|
+
}
|
|
334
401
|
type FeatureType = 'xlrelease.TaskDrawer';
|
|
335
402
|
interface FixtureFeature {
|
|
336
403
|
enabled: boolean;
|
|
@@ -347,14 +414,6 @@ interface FixtureConfiguration extends PlanItem {
|
|
|
347
414
|
url: string;
|
|
348
415
|
username?: string;
|
|
349
416
|
}
|
|
350
|
-
interface FixtureTrigger extends PlanItem {
|
|
351
|
-
folderId?: string;
|
|
352
|
-
gitRepository?: string;
|
|
353
|
-
periodicity?: number | string;
|
|
354
|
-
pollType?: string;
|
|
355
|
-
releaseTitle: string;
|
|
356
|
-
template: string;
|
|
357
|
-
}
|
|
358
417
|
interface FixtureActivityLog extends PlanItem {
|
|
359
418
|
activityType: string;
|
|
360
419
|
eventTime: Date;
|
|
@@ -370,15 +429,19 @@ export const test: import("@playwright/test").TestType<import("@playwright/test"
|
|
|
370
429
|
declare class Fixtures {
|
|
371
430
|
constructor(request: APIRequestContext, page: Page);
|
|
372
431
|
release(release: FixtureRelease): Promise<APIResponse>;
|
|
432
|
+
archivedRelease(release: FixtureRelease): Promise<APIResponse>;
|
|
373
433
|
configuration(ci: FixtureConfiguration): Promise<APIResponse>;
|
|
374
|
-
|
|
434
|
+
getParentId(id: string): string;
|
|
435
|
+
folder(folder: Folder): Promise<APIResponse>;
|
|
375
436
|
deleteArchivedRelease(id: string): Promise<APIResponse>;
|
|
376
437
|
deleteRelease(id: string): Promise<APIResponse>;
|
|
377
438
|
deleteUser(username: string): Promise<APIResponse>;
|
|
378
439
|
deleteUserProfile(userProfile: string): Promise<APIResponse>;
|
|
379
440
|
deleteTrigger(id: string): Promise<APIResponse>;
|
|
380
441
|
deleteConfiguration(id: string): Promise<APIResponse>;
|
|
381
|
-
|
|
442
|
+
deleteFolder(folderId: string): Promise<APIResponse>;
|
|
443
|
+
activityLogs(id: string, logs: Array<FixtureActivityLog>): Promise<APIResponse>;
|
|
444
|
+
globalVariable(variable: Variable): Promise<APIResponse>;
|
|
382
445
|
cleanAll(): Promise<void>;
|
|
383
446
|
addJiraTask(): Promise<string>;
|
|
384
447
|
addUser(username: string, password: string): Promise<void>;
|