@digital-ai/devops-page-object-deploy 0.0.6 → 0.0.8
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 +12 -0
- package/dist/main.js +334 -1170
- package/dist/main.js.map +1 -1
- package/dist/module.js +334 -1170
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +56 -740
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,752 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare class Section {
|
|
3
|
-
parentLocator: Locator;
|
|
4
|
-
sectionRoot: Locator;
|
|
5
|
-
constructor(parentLocator: Locator, sectionRootLocator: Locator);
|
|
6
|
-
/**
|
|
7
|
-
* Get child element in the section "this.sectionRoot" refers to
|
|
8
|
-
* @param childElementLocator
|
|
9
|
-
*/
|
|
10
|
-
findElementInSection(childElementLocator: Locator): Locator;
|
|
11
|
-
}
|
|
12
|
-
declare class SideNavigation extends Section {
|
|
13
|
-
constructor(parentLocator: Locator, page: Page);
|
|
14
|
-
/**
|
|
15
|
-
* Click on side navigation links
|
|
16
|
-
*/
|
|
17
|
-
clickSideLink(sideLinkLocator: Locator): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
declare class LeftPanel extends SideNavigation {
|
|
20
|
-
backButtonLocator: Locator;
|
|
21
|
-
linkExploreLocator: Locator;
|
|
22
|
-
linkCompareLocator: Locator;
|
|
23
|
-
linkReportsLocator: Locator;
|
|
24
|
-
linkRulesAndMacrosLocator: Locator;
|
|
25
|
-
linkGitOps: Locator;
|
|
26
|
-
linkLocalSource: Locator;
|
|
27
|
-
linkPlugins: Locator;
|
|
28
|
-
linkUserManagement: Locator;
|
|
29
|
-
collapseButtonLocator: Locator;
|
|
30
|
-
expandButtonLocator: Locator;
|
|
31
|
-
static sectionRootLocator: string;
|
|
32
|
-
constructor(parentLocator: Locator, page: Page);
|
|
33
|
-
/**
|
|
34
|
-
* Click on go back button on side naviation links
|
|
35
|
-
*/
|
|
36
|
-
goBack(): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Click on Explorer from left panel
|
|
39
|
-
*/
|
|
40
|
-
clickExplorer(): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Click on Compare from left panel
|
|
43
|
-
*/
|
|
44
|
-
clickCompare(): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Click on Reports from left panel
|
|
47
|
-
*/
|
|
48
|
-
clickReports(): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Click on Rules and Macros from left panel
|
|
51
|
-
*/
|
|
52
|
-
clickRulesAndMacros(): Promise<void>;
|
|
53
|
-
/**
|
|
54
|
-
* Click on Gitops from left panel
|
|
55
|
-
*/
|
|
56
|
-
clickGitOps(): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Click on Local sources from left panel
|
|
59
|
-
*/
|
|
60
|
-
clickLocalSources(): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Click on Plugins from left panel
|
|
63
|
-
*/
|
|
64
|
-
clickPlugins(): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Click on User Managements from left panel
|
|
67
|
-
*/
|
|
68
|
-
clickUserManagement(): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Click on Collapse button from left panel
|
|
71
|
-
*/
|
|
72
|
-
clickCollapse(): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Click on Expand from left panel
|
|
75
|
-
*/
|
|
76
|
-
clickExpand(): Promise<void>;
|
|
77
|
-
}
|
|
78
|
-
declare class Banner extends Section {
|
|
79
|
-
constructor(parentLocator: Locator, page: Page);
|
|
80
|
-
}
|
|
81
|
-
declare class Content extends Section {
|
|
82
|
-
static sectionRoot: string;
|
|
83
|
-
banner: Banner;
|
|
84
|
-
leftPanel: LeftPanel;
|
|
85
|
-
constructor(parentLocator: Locator, page: Page);
|
|
86
|
-
}
|
|
87
|
-
declare class Menu extends Section {
|
|
88
|
-
static parentLocator: Locator;
|
|
89
|
-
menuLinkLocator: Locator;
|
|
90
|
-
menuItemsParentLocator: Locator;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @param menuContentRootLocator menu content root locator
|
|
94
|
-
* @param menuLinkLocator Menu link locator thats used to open/close the menu
|
|
95
|
-
* @param menuItemsParentLocator Menu items that opens up when menu link is clicked
|
|
96
|
-
*/
|
|
97
|
-
constructor(menuContentRootLocator: Locator, menuLinkLocator: Locator, menuItemsParentLocator: Locator);
|
|
98
|
-
/**
|
|
99
|
-
* Click on a menu item
|
|
100
|
-
* @param menuItemLocator
|
|
101
|
-
*/
|
|
102
|
-
clickMenuItem(menuItemLocator: Locator): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Close a menu item
|
|
105
|
-
*/
|
|
106
|
-
close(): Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
* Note : Support only one level of menu items not being open iow if the link to click
|
|
109
|
-
* @param mouseOverLocator
|
|
110
|
-
* @param menuItemLocator
|
|
111
|
-
*/
|
|
112
|
-
hoverFlyoutAndClickMenuItem(mouseOverLocator: Locator, menuItemLocator: Locator): Promise<void>;
|
|
113
|
-
/**
|
|
114
|
-
* Open contextual menu dots of ci to work with contextual-menu items.
|
|
115
|
-
*/
|
|
116
|
-
openContextualMenuDots(): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Find exact menu locators using menu parent locators.
|
|
119
|
-
* @param childElementLocator
|
|
120
|
-
* @returns
|
|
121
|
-
*/
|
|
122
|
-
findElementInMenu(childElementLocator: Locator): Promise<Locator>;
|
|
123
|
-
}
|
|
124
|
-
declare class HelperMenu extends Menu {
|
|
125
|
-
onlineDoc: Locator;
|
|
126
|
-
supportRequest: Locator;
|
|
127
|
-
website: Locator;
|
|
128
|
-
usageMatrix: Locator;
|
|
129
|
-
getDataForSupport: Locator;
|
|
130
|
-
constructor(page: Page);
|
|
131
|
-
/**
|
|
132
|
-
* Click on online Documentation menu option
|
|
133
|
-
*/
|
|
134
|
-
clickOnlineDocumentation(): Promise<void>;
|
|
135
|
-
/**
|
|
136
|
-
* Click on menu option
|
|
137
|
-
*/
|
|
138
|
-
clickSupportRequest(): Promise<void>;
|
|
139
|
-
/**
|
|
140
|
-
* Click on Digital.ai website menu option
|
|
141
|
-
*/
|
|
142
|
-
clickOfficialWebsite(): Promise<void>;
|
|
143
|
-
/**
|
|
144
|
-
* Click on usage matrix menu option
|
|
145
|
-
*/
|
|
146
|
-
clickUsageMatrix(): Promise<void>;
|
|
147
|
-
/**
|
|
148
|
-
* Click on Get data for support menu option
|
|
149
|
-
*/
|
|
150
|
-
clickGetDataForSupport(): Promise<void>;
|
|
151
|
-
}
|
|
152
|
-
declare class BrandLogo extends Section {
|
|
153
|
-
constructor(parentLocator: Locator, page: Page);
|
|
154
|
-
clickLogo(): Promise<void>;
|
|
155
|
-
}
|
|
156
|
-
declare class SettingsMenu extends Menu {
|
|
157
|
-
constructor(page: Page);
|
|
158
|
-
/**
|
|
159
|
-
* Click on settings menu option
|
|
160
|
-
*/
|
|
161
|
-
clickSettings(): Promise<void>;
|
|
162
|
-
/**
|
|
163
|
-
* Click on renew license menu option
|
|
164
|
-
*/
|
|
165
|
-
clickRenewLicense(): Promise<void>;
|
|
166
|
-
/**
|
|
167
|
-
* Click on view as menu option
|
|
168
|
-
*/
|
|
169
|
-
clickViewAs(): Promise<void>;
|
|
170
|
-
/**
|
|
171
|
-
* Click on maintenance mode menu option
|
|
172
|
-
*/
|
|
173
|
-
clickMaintenanceMode(): Promise<void>;
|
|
174
|
-
/**
|
|
175
|
-
* Click on About menu option
|
|
176
|
-
*/
|
|
177
|
-
clickAbout(): Promise<void>;
|
|
178
|
-
/**
|
|
179
|
-
* Click on System information menu option
|
|
180
|
-
*/
|
|
181
|
-
clickSystemInfo(): Promise<void>;
|
|
182
|
-
}
|
|
183
|
-
declare class AvatarMenu extends Menu {
|
|
184
|
-
page: Page;
|
|
185
|
-
userProfileLocator: Locator;
|
|
186
|
-
logoutLocator: Locator;
|
|
187
|
-
avatarTooltip: Locator;
|
|
188
|
-
constructor(page: Page);
|
|
189
|
-
clickUserProfile(): Promise<void>;
|
|
190
|
-
logout(): Promise<void>;
|
|
191
|
-
validateAvatarName(expectedName: string): Promise<void>;
|
|
192
|
-
}
|
|
193
|
-
declare class Header extends Section {
|
|
194
|
-
page: Page;
|
|
195
|
-
brandLogo: BrandLogo;
|
|
196
|
-
helperMenu: HelperMenu;
|
|
197
|
-
settingsMenu: SettingsMenu;
|
|
198
|
-
avatarMenu: AvatarMenu;
|
|
199
|
-
constructor(parentLocator: Locator, page: Page);
|
|
200
|
-
}
|
|
1
|
+
import { Page } from "@playwright/test";
|
|
201
2
|
declare class WithPage {
|
|
202
|
-
|
|
203
|
-
content: Content;
|
|
204
|
-
constructor(page: Page);
|
|
205
|
-
}
|
|
206
|
-
declare class Form extends Section {
|
|
207
|
-
constructor(parentLocator: Locator, mainContentRootLocator: Locator);
|
|
208
|
-
fillTextInput(textInput: Locator, textValue: string): Promise<void>;
|
|
209
|
-
}
|
|
210
|
-
declare class loginForm extends Form {
|
|
211
|
-
page: Page;
|
|
212
|
-
static mainContentRootLocator: string;
|
|
213
|
-
username: Locator;
|
|
214
|
-
password: Locator;
|
|
215
|
-
loginButton: Locator;
|
|
216
|
-
rememberMeCheckbox: Locator;
|
|
217
|
-
constructor(parentLocator: Locator, page: Page);
|
|
218
|
-
enterUserName(username: string): Promise<void>;
|
|
219
|
-
enterPassword(password: string): Promise<void>;
|
|
220
|
-
clickLogin(): Promise<void>;
|
|
221
|
-
clickRememberMe(): Promise<void>;
|
|
222
|
-
}
|
|
223
|
-
declare class LoginPage extends WithPage {
|
|
224
|
-
page: Page;
|
|
225
|
-
loginForm: loginForm;
|
|
226
|
-
constructor(page: Page);
|
|
227
|
-
login(user: string, pwd: string): Promise<void>;
|
|
228
|
-
}
|
|
229
|
-
declare class ApplicationUtil {
|
|
230
|
-
page: Page;
|
|
231
|
-
applicationPage: ApplicationPage;
|
|
232
|
-
constructor(page1: ApplicationPage, page: Page);
|
|
233
|
-
/**
|
|
234
|
-
* Create New directory under applications CI.
|
|
235
|
-
* @param appDirectoryName
|
|
236
|
-
*/
|
|
237
|
-
createNewApplicationDirectory(appDirectoryName: string): Promise<void>;
|
|
238
|
-
/**
|
|
239
|
-
* Create new application under Application ci
|
|
240
|
-
* @param appName
|
|
241
|
-
*/
|
|
242
|
-
createNewApplication(appName: string): Promise<void>;
|
|
243
|
-
/**
|
|
244
|
-
* TODO: It is half done just to check on menu path other than new. Need to create as per scenario.
|
|
245
|
-
*/
|
|
246
|
-
createFromFileImport(): Promise<void>;
|
|
247
|
-
}
|
|
248
|
-
declare class Tab extends WithPage {
|
|
249
|
-
page: Page;
|
|
250
|
-
parentTabLocator: Locator;
|
|
251
|
-
getTabTitleLocator: Locator;
|
|
252
|
-
closeIcon: Locator;
|
|
253
|
-
tabSelector: Locator;
|
|
254
|
-
tabTitle: Locator;
|
|
255
|
-
constructor(page: Page);
|
|
256
|
-
/**
|
|
257
|
-
* Assert active tab title with expected value.
|
|
258
|
-
* @param expectedCiType
|
|
259
|
-
* @returns
|
|
260
|
-
*/
|
|
261
|
-
assertActiveTabSelector(expectedCiType: string): Promise<void>;
|
|
262
|
-
/**
|
|
263
|
-
* Close the active tab by clicking close button
|
|
264
|
-
*/
|
|
265
|
-
closeActiveTabs(): Promise<void>;
|
|
266
|
-
/**
|
|
267
|
-
* Verify there is no tabs are opened.
|
|
268
|
-
*/
|
|
269
|
-
noTabsOpened(): Promise<void>;
|
|
270
|
-
/**
|
|
271
|
-
* Expect the given tab title is present in tab opened
|
|
272
|
-
* @param tabTitle
|
|
273
|
-
* @returns
|
|
274
|
-
*/
|
|
275
|
-
expectTabOpened(tabTitle: string): Promise<void>;
|
|
276
|
-
/**
|
|
277
|
-
* Expect the given tab title is not present in tab opened
|
|
278
|
-
* @param tabTitle
|
|
279
|
-
* @returns
|
|
280
|
-
*/
|
|
281
|
-
expectTabNotOpened(tabTitle: string): Promise<void>;
|
|
282
|
-
}
|
|
283
|
-
declare class ExplorerMenu extends Menu {
|
|
284
|
-
page: Page;
|
|
285
|
-
applicationLocator: Locator;
|
|
286
|
-
environmentLocator: Locator;
|
|
287
|
-
constructor(page: Page);
|
|
288
|
-
/**
|
|
289
|
-
* Click on application CI in contextual-menu option.
|
|
290
|
-
*/
|
|
291
|
-
clickApplicationCi(): Promise<void>;
|
|
292
|
-
/**
|
|
293
|
-
* Click on application CI in contextual-menu option.
|
|
294
|
-
*/
|
|
295
|
-
clickEnvironmentCi(): Promise<void>;
|
|
296
|
-
/**
|
|
297
|
-
* Click on menu items from contextual-menu option using path navigation option
|
|
298
|
-
* @param path: Provide menu navigation path using array
|
|
299
|
-
* eg: ['new','Application'] -> to click on menu to create new application
|
|
300
|
-
*/
|
|
301
|
-
clickMenuPath(path: any): Promise<void>;
|
|
302
|
-
}
|
|
303
|
-
declare class ExplorerForm extends Form {
|
|
304
|
-
page: Page;
|
|
305
|
-
inputName: Locator;
|
|
306
|
-
inputLatestVersion: Locator;
|
|
307
|
-
saveButton: Locator;
|
|
308
|
-
saveAndCloseButton: Locator;
|
|
309
|
-
cancelButton: Locator;
|
|
310
|
-
errorMessage: Locator;
|
|
311
|
-
formSection: Locator;
|
|
312
|
-
refreshButton: Locator;
|
|
313
|
-
inputRename: Locator;
|
|
314
|
-
constructor(parentLocator: Locator, page: Page);
|
|
315
|
-
/**
|
|
316
|
-
* Enter name in name field of the application form
|
|
317
|
-
* @param name
|
|
318
|
-
* @returns
|
|
319
|
-
*/
|
|
320
|
-
enterName(name: string): Promise<void>;
|
|
321
|
-
/**
|
|
322
|
-
* Enter latest version field
|
|
323
|
-
* @param version
|
|
324
|
-
* @returns
|
|
325
|
-
*/
|
|
326
|
-
enterLatestVersion(version: string): Promise<void>;
|
|
327
|
-
/**
|
|
328
|
-
* Click save button
|
|
329
|
-
* @returns
|
|
330
|
-
*/
|
|
331
|
-
clickSave(): Promise<void>;
|
|
332
|
-
/**
|
|
333
|
-
* Click save and close button
|
|
334
|
-
* @returns
|
|
335
|
-
*/
|
|
336
|
-
clickSaveAndClose(): Promise<void>;
|
|
337
|
-
/**
|
|
338
|
-
* Click cancel button
|
|
339
|
-
* @returns
|
|
340
|
-
*/
|
|
341
|
-
clickCancel(): Promise<void>;
|
|
342
|
-
/**
|
|
343
|
-
* Expecting save button is disabled
|
|
344
|
-
* @returns
|
|
345
|
-
*/
|
|
346
|
-
assertSaveButtonIsDisabled(): Promise<void>;
|
|
347
|
-
/**
|
|
348
|
-
* Expecting Save and close button is disabled
|
|
349
|
-
* @returns
|
|
350
|
-
*/
|
|
351
|
-
assertSaveAndCloseButtonIsDisabled(): Promise<void>;
|
|
352
|
-
/**
|
|
353
|
-
* Verify Error message in the form
|
|
354
|
-
* @param errorMsg
|
|
355
|
-
* @returns
|
|
356
|
-
*/
|
|
357
|
-
verifyErrorMessage(errorMsg: string): Promise<void>;
|
|
358
|
-
/**
|
|
359
|
-
* Verify field value in form using field name
|
|
360
|
-
* @param fieldName
|
|
361
|
-
* @param expectedValue
|
|
362
|
-
* @returns
|
|
363
|
-
*/
|
|
364
|
-
verifyFieldValue(fieldName: string, expectedValue: string): Promise<void>;
|
|
365
|
-
}
|
|
366
|
-
declare class Modal extends Section {
|
|
367
|
-
header: Locator;
|
|
368
|
-
body: Locator;
|
|
369
|
-
footer: Locator;
|
|
370
|
-
constructor(parentLocator: Locator, page: Page);
|
|
371
|
-
}
|
|
372
|
-
declare class ExplorerModal extends Modal {
|
|
373
|
-
deleteButton: Locator;
|
|
374
|
-
cancelButton: Locator;
|
|
375
|
-
moveButton: Locator;
|
|
376
|
-
constructor(parentLocator: Locator, page: Page);
|
|
377
|
-
clickDelete(): Promise<void>;
|
|
378
|
-
clickCancel(): Promise<void>;
|
|
379
|
-
clickMove(): Promise<void>;
|
|
380
|
-
}
|
|
381
|
-
declare class ExplorerUtil {
|
|
382
|
-
page: Page;
|
|
383
|
-
contextMenu: ExplorerMenu;
|
|
384
|
-
tab: Tab;
|
|
385
|
-
form: ExplorerForm;
|
|
386
|
-
modal: ExplorerModal;
|
|
387
|
-
constructor(page: Page);
|
|
388
|
-
/**
|
|
389
|
-
* Create new ci under any explorer package by providing following parameters.
|
|
390
|
-
* @param parentNodeId
|
|
391
|
-
* @param menuPath
|
|
392
|
-
* @param expectedCiType
|
|
393
|
-
* @param fieldName
|
|
394
|
-
*/
|
|
395
|
-
createNewCi(parentNodeId: string, menuPath: any, fieldName: string): Promise<void>;
|
|
396
|
-
/**
|
|
397
|
-
* Expand the ci path tree toggler.
|
|
398
|
-
* @param pathnode
|
|
399
|
-
*/
|
|
400
|
-
expandNode(pathnode: string): Promise<void>;
|
|
401
|
-
/**
|
|
402
|
-
* expands the path of CI by separating path from "/"
|
|
403
|
-
* @param parentNodeId
|
|
404
|
-
*/
|
|
405
|
-
expandNodePath(parentNodeId: string): Promise<void>;
|
|
406
|
-
/**
|
|
407
|
-
* Collapse the tree toggler of ci path.
|
|
408
|
-
* @param parentNodeId
|
|
409
|
-
*/
|
|
410
|
-
collapseNode(parentNodeId: string): Promise<void>;
|
|
411
|
-
/**
|
|
412
|
-
* Delete the ci
|
|
413
|
-
* @param node
|
|
414
|
-
*/
|
|
415
|
-
deleteCi(node: string): Promise<void>;
|
|
416
|
-
/**
|
|
417
|
-
* Click on specific node which is under Application CI.
|
|
418
|
-
* @param nodeId
|
|
419
|
-
*/
|
|
420
|
-
clickNode(nodeId: string): Promise<void>;
|
|
421
|
-
/**
|
|
422
|
-
* Click on ci under any explorer package of contextual menus by providing following parameters.
|
|
423
|
-
* @param parentNodeId
|
|
424
|
-
* @param menuPath
|
|
425
|
-
* @param expectedCiType
|
|
426
|
-
* @param fieldName
|
|
427
|
-
*/
|
|
428
|
-
clickCi(parentNodeId: string, menuPath: any, expectedCiType: string): Promise<void>;
|
|
429
|
-
/**
|
|
430
|
-
* Duplicate the CI node in explorer using context-menu
|
|
431
|
-
* @param nodeId
|
|
432
|
-
*/
|
|
433
|
-
duplicate(nodeId: string): Promise<void>;
|
|
434
|
-
/**
|
|
435
|
-
* Validate the given node ID is visible in the page
|
|
436
|
-
* @param nodeId
|
|
437
|
-
*/
|
|
438
|
-
validateNodeExists(nodeId: string): Promise<void>;
|
|
439
|
-
/**
|
|
440
|
-
* Validate the given node does not exists in the list.
|
|
441
|
-
* @param nodeId
|
|
442
|
-
*/
|
|
443
|
-
validateNodeDoesNotExists(nodeId: string): Promise<void>;
|
|
444
|
-
/**
|
|
445
|
-
* Rename the node Id with new string in CI.
|
|
446
|
-
* @param nodeId
|
|
447
|
-
* @param renamedValue
|
|
448
|
-
*/
|
|
449
|
-
inlineRename(nodeId: string, renamedValue: string): Promise<void>;
|
|
450
|
-
/**
|
|
451
|
-
* Open CI from explorer
|
|
452
|
-
* @param nodeId
|
|
453
|
-
*/
|
|
454
|
-
openCi(nodeId: string): Promise<void>;
|
|
455
|
-
/**
|
|
456
|
-
* Select the CI which need to get deleted.
|
|
457
|
-
* @param nodeId
|
|
458
|
-
*/
|
|
459
|
-
selectDeleteCi(nodeId: string): Promise<void>;
|
|
460
|
-
/**
|
|
461
|
-
* Click cancel button on modal window to cancel deletion.
|
|
462
|
-
*/
|
|
463
|
-
clickCancelAndWait(): Promise<void>;
|
|
464
|
-
/**
|
|
465
|
-
* Click Delete button on modal window to delete the CI
|
|
466
|
-
*/
|
|
467
|
-
clickConfirmAndWait(): Promise<void>;
|
|
468
|
-
/**
|
|
469
|
-
* Move ci
|
|
470
|
-
* @param source_path
|
|
471
|
-
* @param target_path
|
|
472
|
-
*/
|
|
473
|
-
moveCi(source_path: string, target_path: string): Promise<void>;
|
|
474
|
-
/**
|
|
475
|
-
* Click Move button on modal window to Move the CIs
|
|
476
|
-
*/
|
|
477
|
-
clickMoveAndWait(): Promise<void>;
|
|
478
|
-
}
|
|
479
|
-
declare class ApplicationForm extends Form {
|
|
480
|
-
page: Page;
|
|
481
|
-
inputName: Locator;
|
|
482
|
-
inputLatestVersion: Locator;
|
|
483
|
-
saveButton: Locator;
|
|
484
|
-
saveAndCloseButton: Locator;
|
|
485
|
-
cancelButton: Locator;
|
|
486
|
-
formSection: Locator;
|
|
487
|
-
addButton: Locator;
|
|
488
|
-
constructor(parentLocator: Locator, page: Page);
|
|
489
|
-
/**
|
|
490
|
-
* Enter name in name field of the application form
|
|
491
|
-
* @param name
|
|
492
|
-
* @returns
|
|
493
|
-
*/
|
|
494
|
-
enterName(name: string): Promise<void>;
|
|
495
|
-
/**
|
|
496
|
-
* Enter latest version field
|
|
497
|
-
* @param version
|
|
498
|
-
* @returns
|
|
499
|
-
*/
|
|
500
|
-
enterLatestVersion(version: string): Promise<void>;
|
|
501
|
-
/**
|
|
502
|
-
* Click save button
|
|
503
|
-
* @returns
|
|
504
|
-
*/
|
|
505
|
-
clickSave(): Promise<void>;
|
|
506
|
-
/**
|
|
507
|
-
* Click save and close button
|
|
508
|
-
* @returns
|
|
509
|
-
*/
|
|
510
|
-
clickSaveAndClose(): Promise<void>;
|
|
511
|
-
/**
|
|
512
|
-
* Click cancel button
|
|
513
|
-
* @returns
|
|
514
|
-
*/
|
|
515
|
-
clickCancel(): Promise<void>;
|
|
516
|
-
/**
|
|
517
|
-
* Expecting save button is disabled
|
|
518
|
-
* @returns
|
|
519
|
-
*/
|
|
520
|
-
assertSaveButtonIsDisabled(): Promise<void>;
|
|
521
|
-
/**
|
|
522
|
-
* Expecting Save and close button is disabled
|
|
523
|
-
* @returns
|
|
524
|
-
*/
|
|
525
|
-
assertSaveAndCloseButtonIsDisabled(): Promise<void>;
|
|
526
|
-
/**
|
|
527
|
-
* Enter Field Values using its label value around application forms
|
|
528
|
-
* @param fieldName
|
|
529
|
-
* @param expectedValue
|
|
530
|
-
* @returns
|
|
531
|
-
*/
|
|
532
|
-
addFieldValue(fieldName: string, expectedValue: string): Promise<void>;
|
|
533
|
-
addOrchestrator(fieldValue: string): Promise<void>;
|
|
534
|
-
}
|
|
535
|
-
declare class ApplicationPage extends WithPage {
|
|
536
|
-
contextMenu: ExplorerMenu;
|
|
537
|
-
form: ExplorerForm;
|
|
538
|
-
tab: Tab;
|
|
539
|
-
modal: ExplorerModal;
|
|
540
|
-
commonUtil: ExplorerUtil;
|
|
541
|
-
util: ApplicationUtil;
|
|
542
|
-
appForm: ApplicationForm;
|
|
3
|
+
protected readonly page: Page;
|
|
543
4
|
constructor(page: Page);
|
|
544
5
|
}
|
|
545
6
|
declare class HomePage extends WithPage {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
inputName: Locator;
|
|
551
|
-
inputLatestVersion: Locator;
|
|
552
|
-
saveButton: Locator;
|
|
553
|
-
saveAndCloseButton: Locator;
|
|
554
|
-
cancelButton: Locator;
|
|
555
|
-
inputHost: Locator;
|
|
556
|
-
inputPort: Locator;
|
|
557
|
-
inputUsername: Locator;
|
|
558
|
-
inputPassword: Locator;
|
|
559
|
-
inputFromAddress: Locator;
|
|
560
|
-
inputTestAddress: Locator;
|
|
561
|
-
inputHostName: Locator;
|
|
562
|
-
constructor(parentLocator: Locator, page: Page);
|
|
563
|
-
/**
|
|
564
|
-
* Enter name in name field of the configuration form
|
|
565
|
-
* @param name
|
|
566
|
-
* @returns
|
|
567
|
-
*/
|
|
568
|
-
enterName(name: string): Promise<void>;
|
|
569
|
-
/**
|
|
570
|
-
* Enter latest version field
|
|
571
|
-
* @param version
|
|
572
|
-
* @returns
|
|
573
|
-
*/
|
|
574
|
-
enterLatestVersion(version: string): Promise<void>;
|
|
575
|
-
/**
|
|
576
|
-
* Click save button
|
|
577
|
-
* @returns
|
|
578
|
-
*/
|
|
579
|
-
clickSave(): Promise<void>;
|
|
580
|
-
/**
|
|
581
|
-
* Click save and close button
|
|
582
|
-
* @returns
|
|
583
|
-
*/
|
|
584
|
-
clickSaveAndClose(): Promise<void>;
|
|
585
|
-
/**
|
|
586
|
-
* Click cancel button
|
|
587
|
-
* @returns
|
|
588
|
-
*/
|
|
589
|
-
clickCancel(): Promise<void>;
|
|
590
|
-
/**
|
|
591
|
-
* Expecting save button is disabled
|
|
592
|
-
* @returns
|
|
593
|
-
*/
|
|
594
|
-
assertSaveButtonIsDisabled(): Promise<void>;
|
|
595
|
-
/**
|
|
596
|
-
* Expecting Save and close button is disabled
|
|
597
|
-
* @returns
|
|
598
|
-
*/
|
|
599
|
-
assertSaveAndCloseButtonIsDisabled(): Promise<void>;
|
|
600
|
-
/**
|
|
601
|
-
* Expecting field value with its field name
|
|
602
|
-
* @param fieldName
|
|
603
|
-
* @param value
|
|
604
|
-
* @returns
|
|
605
|
-
*/
|
|
606
|
-
expectFieldValue(fieldName: string, value: string): Promise<void>;
|
|
607
|
-
/**
|
|
608
|
-
* Set Host value to the Host field in configuration form
|
|
609
|
-
* @param host
|
|
610
|
-
* @returns
|
|
611
|
-
*/
|
|
612
|
-
setHostValue(host: string): Promise<void>;
|
|
613
|
-
/**
|
|
614
|
-
* Setting port value in the configuration form
|
|
615
|
-
* @param port
|
|
616
|
-
* @returns
|
|
617
|
-
*/
|
|
618
|
-
setPortValue(port: string): Promise<void>;
|
|
619
|
-
/**
|
|
620
|
-
* Setting from Address field value in configuration form
|
|
621
|
-
* @param address
|
|
622
|
-
* @returns
|
|
623
|
-
*/
|
|
624
|
-
setFromAddress(address: string): Promise<void>;
|
|
625
|
-
/**
|
|
626
|
-
* Setting username in configuration form
|
|
627
|
-
* @param username
|
|
628
|
-
* @returns
|
|
629
|
-
*/
|
|
630
|
-
setUserName(username: string): Promise<void>;
|
|
631
|
-
/**
|
|
632
|
-
* Setting password in configuration form
|
|
633
|
-
* @param password
|
|
634
|
-
* @returns
|
|
635
|
-
*/
|
|
636
|
-
setPassword(password: string): Promise<void>;
|
|
637
|
-
/**
|
|
638
|
-
* Setting host name in configuration form
|
|
639
|
-
* @param hostname
|
|
640
|
-
* @returns
|
|
641
|
-
*/
|
|
642
|
-
setHostName(hostname: string): Promise<void>;
|
|
643
|
-
}
|
|
644
|
-
declare class ConfigurationUtil {
|
|
645
|
-
page: Page;
|
|
646
|
-
configPage: ConfigurationPage;
|
|
647
|
-
constructor(page1: ConfigurationPage, page: Page);
|
|
648
|
-
}
|
|
649
|
-
declare class ConfigurationPage extends WithPage {
|
|
650
|
-
contextMenu: ExplorerMenu;
|
|
651
|
-
form: ExplorerForm;
|
|
652
|
-
tab: Tab;
|
|
653
|
-
modal: ExplorerModal;
|
|
654
|
-
commonUtil: ExplorerUtil;
|
|
655
|
-
configForm: ConfigurationForm;
|
|
656
|
-
util: ConfigurationUtil;
|
|
657
|
-
constructor(page: Page);
|
|
658
|
-
}
|
|
659
|
-
declare class EnvironmentForm extends Form {
|
|
660
|
-
page: Page;
|
|
661
|
-
formSection: Locator;
|
|
662
|
-
inputName: Locator;
|
|
663
|
-
inputLatestVersion: Locator;
|
|
664
|
-
saveButton: Locator;
|
|
665
|
-
saveAndCloseButton: Locator;
|
|
666
|
-
cancelButton: Locator;
|
|
667
|
-
inputVersion: Locator;
|
|
668
|
-
constructor(parentLocator: Locator, page: Page);
|
|
669
|
-
/**
|
|
670
|
-
* Expect the label text is available in form.
|
|
671
|
-
* @param label
|
|
672
|
-
*/
|
|
673
|
-
assertLabelText(label: string): Promise<void>;
|
|
674
|
-
/**
|
|
675
|
-
* Enter name in name field of the application form
|
|
676
|
-
* @param name
|
|
677
|
-
* @returns
|
|
678
|
-
*/
|
|
679
|
-
enterName(name: string): Promise<void>;
|
|
680
|
-
/**
|
|
681
|
-
* Enter latest version field
|
|
682
|
-
* @param version
|
|
683
|
-
* @returns
|
|
684
|
-
*/
|
|
685
|
-
enterLatestVersion(version: string): Promise<void>;
|
|
686
|
-
/**
|
|
687
|
-
* Click save button
|
|
688
|
-
* @returns
|
|
689
|
-
*/
|
|
690
|
-
clickSave(): Promise<void>;
|
|
691
|
-
/**
|
|
692
|
-
* Click save and close button
|
|
693
|
-
* @returns
|
|
694
|
-
*/
|
|
695
|
-
clickSaveAndClose(): Promise<void>;
|
|
696
|
-
/**
|
|
697
|
-
* Click cancel button
|
|
698
|
-
* @returns
|
|
699
|
-
*/
|
|
700
|
-
clickCancel(): Promise<void>;
|
|
701
|
-
/**
|
|
702
|
-
* Expecting save button is disabled
|
|
703
|
-
* @returns
|
|
704
|
-
*/
|
|
705
|
-
assertSaveButtonIsDisabled(): Promise<void>;
|
|
706
|
-
/**
|
|
707
|
-
* Expecting Save and close button is disabled
|
|
708
|
-
* @returns
|
|
709
|
-
*/
|
|
710
|
-
assertSaveAndCloseButtonIsDisabled(): Promise<void>;
|
|
711
|
-
/**
|
|
712
|
-
* Enter options in the input field of dropdown to match with suggestion list in form
|
|
713
|
-
* @param fieldName
|
|
714
|
-
* @param value
|
|
715
|
-
*/
|
|
716
|
-
selectVersionOption(fieldName: string, value: string): Promise<void>;
|
|
717
|
-
}
|
|
718
|
-
declare class EnvironmentUtil {
|
|
719
|
-
page: Page;
|
|
720
|
-
environmentPage: EnvironmentPage;
|
|
721
|
-
constructor(page1: EnvironmentPage, page: Page);
|
|
7
|
+
clickUserManagement(): Promise<void>;
|
|
8
|
+
verifyDeployLogoIsPresent(): Promise<void>;
|
|
9
|
+
verifyDeployTextIsPresent(): Promise<void>;
|
|
10
|
+
clickReports(): Promise<void>;
|
|
722
11
|
}
|
|
723
|
-
declare class
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
12
|
+
declare class UserPage extends WithPage {
|
|
13
|
+
createNewUser(username: string, email: string, password: string): Promise<void>;
|
|
14
|
+
verifySuccessMessage(): Promise<void>;
|
|
15
|
+
verifyUserErrorMessage(): Promise<void>;
|
|
16
|
+
deleteTheUserAndVerifyItIsDeleted(username: string): Promise<void>;
|
|
17
|
+
editUserAndVerify(username: string, editfullname: string): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
declare class OverthereLocalHostPage extends WithPage {
|
|
20
|
+
createHostForGivenType(name: string, type: string): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
declare class EnvironmentsPage extends WithPage {
|
|
23
|
+
createEnvironment(environmentName: string, hostName: string): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
declare class ApplicationsPage extends WithPage {
|
|
26
|
+
taskId: string;
|
|
27
|
+
executedText: string;
|
|
28
|
+
constructor(page: Page, navigation: Navigation);
|
|
29
|
+
createNewApplication(applicationName: string): Promise<void>;
|
|
30
|
+
createNewDeploymentPackage(applicationName: string, packageName: string): Promise<void>;
|
|
31
|
+
createNewCmdApplication(values: string[]): Promise<void>;
|
|
32
|
+
deployApp(values: string[]): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
declare class ReportsPage extends WithPage {
|
|
35
|
+
clickDeploymentTasks(): Promise<void>;
|
|
36
|
+
verifyTheDeploymentValues(values: string[]): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
declare class Navigation {
|
|
39
|
+
homePage: HomePage;
|
|
40
|
+
userPage: UserPage;
|
|
41
|
+
overthereLocalHostPage: OverthereLocalHostPage;
|
|
42
|
+
environmentsPage: EnvironmentsPage;
|
|
43
|
+
applicationsPage: ApplicationsPage;
|
|
44
|
+
reportsPage: ReportsPage;
|
|
731
45
|
constructor(page: Page);
|
|
46
|
+
navigateToHomePage(): Promise<void>;
|
|
47
|
+
navigateToUserPage(): Promise<void>;
|
|
48
|
+
clickCollapseSideView(): Promise<void>;
|
|
49
|
+
navigateToApplicationsPage(): Promise<void>;
|
|
50
|
+
navigateToEnvironmentsPage(): Promise<void>;
|
|
51
|
+
navigateToOverthereLocalHostPage(): Promise<void>;
|
|
732
52
|
}
|
|
733
|
-
declare class
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
modal: ExplorerModal;
|
|
738
|
-
commonUtil: ExplorerUtil;
|
|
739
|
-
constructor(page: Page);
|
|
53
|
+
declare class LoginPage extends WithPage {
|
|
54
|
+
login(userName: string, password: string): Promise<void>;
|
|
55
|
+
verifyInvalidPasswordMessage(): Promise<void>;
|
|
56
|
+
logout(): Promise<void>;
|
|
740
57
|
}
|
|
741
|
-
type
|
|
742
|
-
|
|
743
|
-
configurePage: ConfigurationPage;
|
|
744
|
-
environmentPage: EnvironmentPage;
|
|
745
|
-
homePage: HomePage;
|
|
746
|
-
infraPage: InfraPage;
|
|
58
|
+
type DeployFixtures = {
|
|
59
|
+
fixtures: Fixtures;
|
|
747
60
|
loginPage: LoginPage;
|
|
748
|
-
|
|
61
|
+
navigation: Navigation;
|
|
749
62
|
};
|
|
750
|
-
export const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions &
|
|
63
|
+
export const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & DeployFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
|
|
64
|
+
declare class Fixtures {
|
|
65
|
+
constructor(page: Page);
|
|
66
|
+
}
|
|
751
67
|
|
|
752
68
|
//# sourceMappingURL=types.d.ts.map
|