@digital-ai/devops-page-object-release 0.0.27 → 0.0.29
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 +14 -0
- package/dist/main.js +517 -119
- package/dist/main.js.map +1 -1
- package/dist/module.js +517 -119
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +121 -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>;
|
|
@@ -315,6 +330,8 @@ declare class TaskDrawer extends WithPage {
|
|
|
315
330
|
setFlag(flagName: string, flagComment: string): Promise<void>;
|
|
316
331
|
expectFlaggedWith(flagName: string, flagComment: string): Promise<void>;
|
|
317
332
|
expectStartDateToBeDisplayed(): Promise<void>;
|
|
333
|
+
expectStartDayToBeInAvatar(expectedDay: string): Promise<void>;
|
|
334
|
+
expectEndDayToBeInAvatar(expectedDay: string): Promise<void>;
|
|
318
335
|
expectEndDateToBeDisplayed(): Promise<void>;
|
|
319
336
|
expectStartDateAndEndDateToBeDisplayed(): Promise<void>;
|
|
320
337
|
expectPhaseAndTaskTitleToContain(phaseName: string, taskTitle: string): Promise<void>;
|
|
@@ -448,6 +465,7 @@ declare class Util extends WithPage {
|
|
|
448
465
|
setOrderBy(orderBy: string): Promise<void>;
|
|
449
466
|
setSearchFilter(filterText: string): Promise<void>;
|
|
450
467
|
clearSearchFilter(): Promise<void>;
|
|
468
|
+
leaveWithoutSaving(): Promise<void>;
|
|
451
469
|
}
|
|
452
470
|
declare class ReleasePage extends WithPage {
|
|
453
471
|
addPhaseBtn: Locator;
|
|
@@ -464,6 +482,8 @@ declare class ReleasePage extends WithPage {
|
|
|
464
482
|
openTriggers(): Promise<TriggersPage>;
|
|
465
483
|
abort(comment?: string): Promise<void>;
|
|
466
484
|
getPhase(phaseName: string): Phase;
|
|
485
|
+
expectPhaseCountToBe(expectedPhaseCount: number): Promise<void>;
|
|
486
|
+
expectVariableToBeFound(variableName: string): Promise<void>;
|
|
467
487
|
expectNotFlagged(): Promise<void>;
|
|
468
488
|
expectRiskFlagOnTaskCard(): Promise<void>;
|
|
469
489
|
expectFlagOnCompletedTaskCard(): Promise<void>;
|
|
@@ -561,6 +581,11 @@ declare class Phase extends WithPage {
|
|
|
561
581
|
expectCompletedPhase(): Promise<void>;
|
|
562
582
|
clickViewAllCompletedPhase(): Promise<void>;
|
|
563
583
|
expectTaskToBePresent(taskName: string): Promise<void>;
|
|
584
|
+
expectContainingTask(taskName: string, exist?: boolean): Promise<void>;
|
|
585
|
+
addTaskInGroup(currentGroupType: string, taskTitle: string, taskGroup: string, taskType: string): Promise<void>;
|
|
586
|
+
openContextMenuForTaskInGroup(taskTitle: string, groupName: string): Promise<void>;
|
|
587
|
+
duplicatePhase(): Promise<void>;
|
|
588
|
+
expectActionsDisabled(): Promise<void>;
|
|
564
589
|
}
|
|
565
590
|
declare class RestartPhaseModel extends WithPage {
|
|
566
591
|
continueBtn: Locator;
|
|
@@ -812,6 +837,8 @@ declare class UsersPage extends WithPage {
|
|
|
812
837
|
toggleLoginPermission(username: string): Promise<void>;
|
|
813
838
|
addUser(): Promise<void>;
|
|
814
839
|
createUser(username: string, password: string): Promise<void>;
|
|
840
|
+
filterUser(username: string): Promise<void>;
|
|
841
|
+
expectToHaveFilteredUser(username: string): Promise<void>;
|
|
815
842
|
expectToHaveLoginPermission(username: string): Promise<void>;
|
|
816
843
|
deleteUser(username: string): Promise<void>;
|
|
817
844
|
openRoles(): Promise<void>;
|
|
@@ -1209,7 +1236,49 @@ declare class SystemSettingsPage extends WithPage {
|
|
|
1209
1236
|
openWorkflowCategories(): Promise<void>;
|
|
1210
1237
|
openSMTPServer(): Promise<void>;
|
|
1211
1238
|
}
|
|
1239
|
+
declare class ConnectionsPage extends WithPage {
|
|
1240
|
+
constructor(page: Page);
|
|
1241
|
+
addNewInstance(typeName: string): Promise<ConfigurationInstancePage>;
|
|
1242
|
+
expectInstanceDisplayed(instanceName: string): Promise<this>;
|
|
1243
|
+
expectInstanceNotDisplayed(instanceName: string): Promise<this>;
|
|
1244
|
+
openInstance(instanceName: string): Promise<ConfigurationInstancePage>;
|
|
1245
|
+
deleteInstance(instanceName: string): Promise<this>;
|
|
1246
|
+
expectSuccessMsgToBeDisplayed(text: string): Promise<this>;
|
|
1247
|
+
clearFilter(): Promise<this>;
|
|
1248
|
+
searchInstances(instanceName: string): Promise<this>;
|
|
1249
|
+
expectErrorDisplayed(): Promise<void>;
|
|
1250
|
+
}
|
|
1251
|
+
declare class ConfigurationInstancePage extends WithPage {
|
|
1252
|
+
constructor(page: Page);
|
|
1253
|
+
setTextField(fieldName: string, fieldValue: string): Promise<this>;
|
|
1254
|
+
setNumberField(fieldName: string, fieldValue: number): Promise<this>;
|
|
1255
|
+
selectFromDropdown(fieldName: string, element: string): Promise<this>;
|
|
1256
|
+
save(): Promise<this>;
|
|
1257
|
+
test(): Promise<this>;
|
|
1258
|
+
cancel(): Promise<this>;
|
|
1259
|
+
expectResultBanner(message: string): Promise<this>;
|
|
1260
|
+
expectDropdownToBe(fieldName: string, fieldValue: string): Promise<this>;
|
|
1261
|
+
clearDropdown(fieldName: string): Promise<this>;
|
|
1262
|
+
clickField(fieldName: string): Promise<this>;
|
|
1263
|
+
expectTextFieldToBe(fieldName: string, fieldValue: string): Promise<this>;
|
|
1264
|
+
setStringList(value: Array<string> | string): Promise<this>;
|
|
1265
|
+
expectStringListCountToBe(count: number): Promise<this>;
|
|
1266
|
+
removeString(value: string): Promise<this>;
|
|
1267
|
+
setStringSet(value: Array<string> | string): Promise<this>;
|
|
1268
|
+
expectStringSetCountToBe(count: number): Promise<this>;
|
|
1269
|
+
setStringMap(pairs: {
|
|
1270
|
+
key: string;
|
|
1271
|
+
value: string;
|
|
1272
|
+
}): Promise<void>;
|
|
1273
|
+
expectStringMapCountToBe(count: number): Promise<this>;
|
|
1274
|
+
expectTestButtonToBeDisabled(): Promise<this>;
|
|
1275
|
+
togglePasswordFieldVariable(fieldName: string): Promise<this>;
|
|
1276
|
+
setPasswordFieldVariable(fieldName: string, fieldValue: string): Promise<this>;
|
|
1277
|
+
expectFieldsToNotBeVisible(fieldNames: Array<string> | string): Promise<this>;
|
|
1278
|
+
expectFieldsToBeVisible(fieldNames: Array<string> | string): Promise<this>;
|
|
1279
|
+
}
|
|
1212
1280
|
declare class Navigation {
|
|
1281
|
+
connections: ConnectionsPage;
|
|
1213
1282
|
dataRandomGenerator: DataRandomGenerator;
|
|
1214
1283
|
dateUtil: DateUtil;
|
|
1215
1284
|
folderPage: FolderPage;
|
|
@@ -1263,6 +1332,7 @@ declare class Navigation {
|
|
|
1263
1332
|
collapseSideView(): Promise<void>;
|
|
1264
1333
|
expandSideView(): Promise<void>;
|
|
1265
1334
|
openRisksProfile(): Promise<void>;
|
|
1335
|
+
openConnection(): Promise<void>;
|
|
1266
1336
|
}
|
|
1267
1337
|
declare class LoginPage extends WithPage {
|
|
1268
1338
|
/**
|
|
@@ -1380,6 +1450,7 @@ interface Task extends PlanItem {
|
|
|
1380
1450
|
flagStatus?: string;
|
|
1381
1451
|
folderId?: string;
|
|
1382
1452
|
links: Array<Link>;
|
|
1453
|
+
locked: boolean;
|
|
1383
1454
|
newReleaseTitle?: string;
|
|
1384
1455
|
owner?: string;
|
|
1385
1456
|
plannedDuration: number;
|
|
@@ -1398,7 +1469,9 @@ interface Task extends PlanItem {
|
|
|
1398
1469
|
variables?: Array<Variable>;
|
|
1399
1470
|
waitForScheduledStartDate?: boolean;
|
|
1400
1471
|
}
|
|
1401
|
-
|
|
1472
|
+
interface Condition extends PlanItem {
|
|
1473
|
+
checked?: boolean;
|
|
1474
|
+
}
|
|
1402
1475
|
type Link = PlanItem;
|
|
1403
1476
|
type Attachment = PlanItem;
|
|
1404
1477
|
interface Comment extends PlanItem {
|
|
@@ -1454,15 +1527,18 @@ type DeepPartial<T> = {
|
|
|
1454
1527
|
};
|
|
1455
1528
|
type FixtureRelease = DeepPartial<Release> & Pick<Release, 'id'>;
|
|
1456
1529
|
interface FixtureConfiguration extends PlanItem {
|
|
1530
|
+
address?: string;
|
|
1457
1531
|
apiToken?: string;
|
|
1532
|
+
authenticationMethod?: string;
|
|
1458
1533
|
folderId?: string;
|
|
1459
1534
|
password?: string;
|
|
1535
|
+
port?: number;
|
|
1460
1536
|
proxyHost?: string;
|
|
1461
1537
|
proxyPassword?: string;
|
|
1462
1538
|
proxyPort?: string;
|
|
1463
1539
|
proxyUsername?: string;
|
|
1464
1540
|
scriptLocation?: string;
|
|
1465
|
-
url
|
|
1541
|
+
url?: string;
|
|
1466
1542
|
username?: string;
|
|
1467
1543
|
}
|
|
1468
1544
|
interface FixtureCi extends PlanItem {
|
|
@@ -1579,6 +1655,18 @@ declare class Fixtures {
|
|
|
1579
1655
|
addJiraTask(): Promise<string>;
|
|
1580
1656
|
addUser(username: string, password: string): Promise<void>;
|
|
1581
1657
|
addUserProfile(username: string, profile?: any): Promise<void>;
|
|
1658
|
+
resetUserProfile(username: string, fullName?: string): Promise<APIResponse>;
|
|
1659
|
+
updateProfile(profile: {
|
|
1660
|
+
dateFormat: string;
|
|
1661
|
+
email: string;
|
|
1662
|
+
external: boolean;
|
|
1663
|
+
firstDayOfWeek: number;
|
|
1664
|
+
fullName: string;
|
|
1665
|
+
loginAllowed: boolean;
|
|
1666
|
+
profileId: string;
|
|
1667
|
+
timeFormat: string;
|
|
1668
|
+
username: string;
|
|
1669
|
+
}): Promise<APIResponse>;
|
|
1582
1670
|
expectJiraTaskStatus(taskId: string, expectedStatus: string): Promise<void>;
|
|
1583
1671
|
expectJiraTaskSummary(taskId: string, expectedSummary: string): Promise<void>;
|
|
1584
1672
|
expectContainingAttachments(releaseId: string, tempFile: string): Promise<void>;
|