@digital-ai/devops-page-object-deploy 0.0.5 → 0.0.6
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 +8 -0
- package/dist/main.js +140 -78
- package/dist/main.js.map +1 -1
- package/dist/module.js +140 -78
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +51 -23
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-deploy
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 95c5229: Pages updated with parentLocators and with dataGrid class
|
|
8
|
+
This PR holds revamp of the pages with its parentLocator.
|
|
9
|
+
- 512af21: Added Move-Ci function, optimized application util methods
|
|
10
|
+
|
|
3
11
|
## 0.0.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -7,8 +7,9 @@ function $parcel$export(e, n, v, s) {
|
|
|
7
7
|
|
|
8
8
|
$parcel$export(module.exports, "test", () => $3352700e95ddc19e$export$e0969da9b8fb378d);
|
|
9
9
|
class $b031bda8df4df200$export$6e2c8f0811a474ce {
|
|
10
|
-
constructor(sectionRootLocator){
|
|
11
|
-
this.
|
|
10
|
+
constructor(parentLocator, sectionRootLocator){
|
|
11
|
+
this.parentLocator = parentLocator;
|
|
12
|
+
this.sectionRoot = this.parentLocator.locator(sectionRootLocator);
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Get child element in the section "this.sectionRoot" refers to
|
|
@@ -21,8 +22,8 @@ class $b031bda8df4df200$export$6e2c8f0811a474ce {
|
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
class $beb748f674227a72$export$cc4f63927c41742f extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
24
|
-
constructor(page){
|
|
25
|
-
super(page.getByTestId("primaryNav"));
|
|
25
|
+
constructor(parentLocator, page){
|
|
26
|
+
super(parentLocator, page.getByTestId("primaryNav"));
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Click on side navigation links
|
|
@@ -33,8 +34,9 @@ class $beb748f674227a72$export$cc4f63927c41742f extends (0, $b031bda8df4df200$ex
|
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
class $7c2e5bae754cf9e5$export$110709f040143804 extends (0, $beb748f674227a72$export$cc4f63927c41742f) {
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
static sectionRootLocator = ".Pane vertical Pane1";
|
|
38
|
+
constructor(parentLocator, page){
|
|
39
|
+
super(parentLocator, page);
|
|
38
40
|
this.backButtonLocator = page.getByTestId("back-button");
|
|
39
41
|
this.linkExploreLocator = page.locator("p:has-text('Explorer')");
|
|
40
42
|
this.linkCompareLocator = page.locator("p:has-text('Compare')");
|
|
@@ -108,17 +110,18 @@ class $7c2e5bae754cf9e5$export$110709f040143804 extends (0, $beb748f674227a72$ex
|
|
|
108
110
|
|
|
109
111
|
|
|
110
112
|
class $4a9d9a80e54af555$export$3b4e64e77073e307 extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
111
|
-
constructor(page){
|
|
112
|
-
super(page.locator(".banner-container"));
|
|
113
|
+
constructor(parentLocator, page){
|
|
114
|
+
super(parentLocator, page.locator(".banner-container"));
|
|
113
115
|
}
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
|
|
117
119
|
class $9d59b5ce8284c3bf$export$7c6e2c02157bb7d2 extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
this.
|
|
120
|
+
static sectionRoot = ".app-root";
|
|
121
|
+
constructor(parentLocator, page){
|
|
122
|
+
super(parentLocator, page.locator($9d59b5ce8284c3bf$export$7c6e2c02157bb7d2.sectionRoot));
|
|
123
|
+
this.banner = new (0, $4a9d9a80e54af555$export$3b4e64e77073e307)(page.locator($9d59b5ce8284c3bf$export$7c6e2c02157bb7d2.sectionRoot), page);
|
|
124
|
+
this.leftPanel = new (0, $7c2e5bae754cf9e5$export$110709f040143804)(page.locator($9d59b5ce8284c3bf$export$7c6e2c02157bb7d2.sectionRoot), page);
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
127
|
|
|
@@ -131,7 +134,7 @@ class $7149ac56b8ddfcf1$export$d9b273488cd8ce6f extends (0, $b031bda8df4df200$ex
|
|
|
131
134
|
* @param menuLinkLocator Menu link locator thats used to open/close the menu
|
|
132
135
|
* @param menuItemsParentLocator Menu items that opens up when menu link is clicked
|
|
133
136
|
*/ constructor(menuContentRootLocator, menuLinkLocator, menuItemsParentLocator){
|
|
134
|
-
super(menuContentRootLocator);
|
|
137
|
+
super($7149ac56b8ddfcf1$export$d9b273488cd8ce6f.parentLocator, menuContentRootLocator);
|
|
135
138
|
this.menuLinkLocator = menuLinkLocator;
|
|
136
139
|
this.menuItemsParentLocator = menuContentRootLocator.locator(menuItemsParentLocator);
|
|
137
140
|
}
|
|
@@ -213,9 +216,10 @@ class $8a1acfec011ab8c3$export$5929c05a25eed48f extends (0, $7149ac56b8ddfcf1$ex
|
|
|
213
216
|
|
|
214
217
|
|
|
215
218
|
class $f9e40ff7c3e0c582$export$ca8bffe144e51c8 extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
static sectionRootLocator = ".dot-branding";
|
|
220
|
+
constructor(parentLocator, page){
|
|
221
|
+
super(parentLocator, page.locator($f9e40ff7c3e0c582$export$ca8bffe144e51c8.sectionRootLocator));
|
|
222
|
+
this.logo = this.findElementInSection(page.getByTestId("primary-logo"));
|
|
219
223
|
}
|
|
220
224
|
async clickLogo() {
|
|
221
225
|
await this.logo.click();
|
|
@@ -270,29 +274,37 @@ class $70698a74230ac35b$export$1d7840d5cdc861d5 extends (0, $7149ac56b8ddfcf1$ex
|
|
|
270
274
|
|
|
271
275
|
|
|
272
276
|
|
|
277
|
+
|
|
273
278
|
class $0cc6e6068d8adf21$export$f7f58290278dd286 extends (0, $7149ac56b8ddfcf1$export$d9b273488cd8ce6f) {
|
|
274
279
|
constructor(page){
|
|
275
|
-
super(page.locator("#context-menu-popover"), page.getByTitle("
|
|
280
|
+
super(page.locator("#context-menu-popover"), page.getByTitle(".dot-avatar"), page.locator(".dropdown-menu.multi-level.dropdown-menu-0"));
|
|
281
|
+
this.page = page;
|
|
276
282
|
this.userProfileLocator = page.getByRole("link", {
|
|
277
283
|
name: "User profile"
|
|
278
284
|
});
|
|
279
285
|
this.logoutLocator = page.getByRole("link", {
|
|
280
286
|
name: "Log out"
|
|
281
287
|
});
|
|
288
|
+
this.avatarTooltip = page.locator(".avatar-wrapper>.dot-tooltip");
|
|
282
289
|
}
|
|
283
290
|
async clickUserProfile() {
|
|
284
291
|
await this.clickMenuItem(this.userProfileLocator);
|
|
285
292
|
}
|
|
286
|
-
async
|
|
293
|
+
async logout() {
|
|
287
294
|
await this.clickMenuItem(this.logoutLocator);
|
|
288
295
|
}
|
|
296
|
+
async validateAvatarName(expectedName) {
|
|
297
|
+
(0, $1UEKj$playwrighttest.expect)(await this.avatarTooltip.getAttribute("title")).toContain(expectedName);
|
|
298
|
+
}
|
|
289
299
|
}
|
|
290
300
|
|
|
291
301
|
|
|
292
302
|
class $ae9e523da565a5a8$export$8b251419efc915eb extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
303
|
+
static sectionRootLocator = ".main-header-wrapper.logged-in";
|
|
304
|
+
constructor(parentLocator, page){
|
|
305
|
+
super(parentLocator, page.locator($ae9e523da565a5a8$export$8b251419efc915eb.sectionRootLocator));
|
|
306
|
+
this.page = page;
|
|
307
|
+
this.brandLogo = new (0, $f9e40ff7c3e0c582$export$ca8bffe144e51c8)(page.locator(".main-header-wrapper.logged-in"), page);
|
|
296
308
|
this.helperMenu = new (0, $8a1acfec011ab8c3$export$5929c05a25eed48f)(page);
|
|
297
309
|
this.settingsMenu = new (0, $70698a74230ac35b$export$1d7840d5cdc861d5)(page);
|
|
298
310
|
this.avatarMenu = new (0, $0cc6e6068d8adf21$export$f7f58290278dd286)(page);
|
|
@@ -302,8 +314,47 @@ class $ae9e523da565a5a8$export$8b251419efc915eb extends (0, $b031bda8df4df200$ex
|
|
|
302
314
|
|
|
303
315
|
class $ae23b16684112d0b$export$2b65d1d97338f32b {
|
|
304
316
|
constructor(page){
|
|
305
|
-
this.header = new (0, $ae9e523da565a5a8$export$8b251419efc915eb)(page);
|
|
306
|
-
this.content = new (0, $9d59b5ce8284c3bf$export$7c6e2c02157bb7d2)(page);
|
|
317
|
+
this.header = new (0, $ae9e523da565a5a8$export$8b251419efc915eb)(page.locator(".ci-explorer"), page);
|
|
318
|
+
this.content = new (0, $9d59b5ce8284c3bf$export$7c6e2c02157bb7d2)(page.locator(".ci-explorer"), page);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
class $50f6953b9762c03c$export$a7fed597f4b8afd8 extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
325
|
+
constructor(parentLocator, mainContentRootLocator){
|
|
326
|
+
super(parentLocator, mainContentRootLocator);
|
|
327
|
+
}
|
|
328
|
+
async fillTextInput(textInput, textValue) {
|
|
329
|
+
await textInput.clear();
|
|
330
|
+
await textInput.fill(textValue);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
class $5ca595492af22d0d$export$56c2ba9e13461f38 extends (0, $50f6953b9762c03c$export$a7fed597f4b8afd8) {
|
|
336
|
+
static mainContentRootLocator = ".login-component";
|
|
337
|
+
constructor(parentLocator, page){
|
|
338
|
+
super(parentLocator, page.locator($5ca595492af22d0d$export$56c2ba9e13461f38.mainContentRootLocator));
|
|
339
|
+
this.page = page;
|
|
340
|
+
this.username = this.findElementInSection(page.getByPlaceholder("User"));
|
|
341
|
+
this.password = this.findElementInSection(page.getByPlaceholder("Password"));
|
|
342
|
+
this.loginButton = this.findElementInSection(page.getByRole("button", {
|
|
343
|
+
name: "Log in"
|
|
344
|
+
}));
|
|
345
|
+
this.rememberMeCheckbox = this.findElementInSection(page.locator("#rememberMeCheckbox"));
|
|
346
|
+
}
|
|
347
|
+
async enterUserName(username) {
|
|
348
|
+
await this.fillTextInput(this.username, username);
|
|
349
|
+
}
|
|
350
|
+
async enterPassword(password) {
|
|
351
|
+
await this.fillTextInput(this.password, password);
|
|
352
|
+
}
|
|
353
|
+
async clickLogin() {
|
|
354
|
+
await this.loginButton.click();
|
|
355
|
+
}
|
|
356
|
+
async clickRememberMe() {
|
|
357
|
+
await this.rememberMeCheckbox.click();
|
|
307
358
|
}
|
|
308
359
|
}
|
|
309
360
|
|
|
@@ -312,19 +363,15 @@ class $7dcee016eeec0e08$export$f14c0e3f98d164c0 extends (0, $ae23b16684112d0b$ex
|
|
|
312
363
|
constructor(page){
|
|
313
364
|
super(page);
|
|
314
365
|
this.page = page;
|
|
315
|
-
this.
|
|
316
|
-
this.password = page.getByPlaceholder("Password");
|
|
317
|
-
this.loginButton = page.getByRole("button", {
|
|
318
|
-
name: "Log in"
|
|
319
|
-
});
|
|
320
|
-
this.rememberMeCheckbox = page.locator("#rememberMeCheckbox");
|
|
366
|
+
this.loginForm = new (0, $5ca595492af22d0d$export$56c2ba9e13461f38)(page.locator(".login-layout"), page);
|
|
321
367
|
}
|
|
322
368
|
async login(user, pwd) {
|
|
323
369
|
await this.page.goto("/#/login");
|
|
324
|
-
await this.
|
|
325
|
-
await this.
|
|
326
|
-
await this.
|
|
370
|
+
await this.loginForm.enterUserName(user);
|
|
371
|
+
await this.loginForm.enterPassword(pwd);
|
|
372
|
+
await this.loginForm.clickLogin();
|
|
327
373
|
await this.page.locator(".main-layout").waitFor();
|
|
374
|
+
await this.header.avatarMenu.validateAvatarName(user);
|
|
328
375
|
}
|
|
329
376
|
}
|
|
330
377
|
|
|
@@ -338,8 +385,7 @@ class $dcea22adf7bc9211$export$7db63d2c950874b5 {
|
|
|
338
385
|
/**
|
|
339
386
|
* Create New directory under applications CI.
|
|
340
387
|
* @param appDirectoryName
|
|
341
|
-
|
|
342
|
-
*/ async createNewApplicationDirectory(appDirectoryName, expectedCiType) {
|
|
388
|
+
*/ async createNewApplicationDirectory(appDirectoryName) {
|
|
343
389
|
await this.applicationPage.contextMenu.clickApplicationCi();
|
|
344
390
|
await this.applicationPage.contextMenu.clickMenuPath([
|
|
345
391
|
"new",
|
|
@@ -348,14 +394,13 @@ class $dcea22adf7bc9211$export$7db63d2c950874b5 {
|
|
|
348
394
|
await this.applicationPage.form.assertSaveButtonIsDisabled();
|
|
349
395
|
await this.applicationPage.form.assertSaveAndCloseButtonIsDisabled();
|
|
350
396
|
await this.applicationPage.form.enterName(appDirectoryName);
|
|
351
|
-
await this.applicationPage.tab.assertActiveTabSelector("Create "
|
|
397
|
+
await this.applicationPage.tab.assertActiveTabSelector("Create core.directory");
|
|
352
398
|
await this.applicationPage.form.clickSaveAndClose();
|
|
353
399
|
}
|
|
354
400
|
/**
|
|
355
401
|
* Create new application under Application ci
|
|
356
402
|
* @param appName
|
|
357
|
-
|
|
358
|
-
*/ async createNewApplication(appName, expectedCiType) {
|
|
403
|
+
*/ async createNewApplication(appName) {
|
|
359
404
|
await this.applicationPage.contextMenu.clickApplicationCi();
|
|
360
405
|
await this.applicationPage.contextMenu.clickMenuPath([
|
|
361
406
|
"new",
|
|
@@ -365,7 +410,7 @@ class $dcea22adf7bc9211$export$7db63d2c950874b5 {
|
|
|
365
410
|
await this.applicationPage.form.assertSaveAndCloseButtonIsDisabled();
|
|
366
411
|
await this.applicationPage.form.enterName(appName);
|
|
367
412
|
await this.applicationPage.form.clickSaveAndClose();
|
|
368
|
-
await this.applicationPage.tab.assertActiveTabSelector("Create "
|
|
413
|
+
await this.applicationPage.tab.assertActiveTabSelector("Create udm.application");
|
|
369
414
|
}
|
|
370
415
|
/**
|
|
371
416
|
* TODO: It is half done just to check on menu path other than new. Need to create as per scenario.
|
|
@@ -463,20 +508,9 @@ class $9dd8dd888e812fd7$export$133beb65adbc45a3 extends (0, $7149ac56b8ddfcf1$ex
|
|
|
463
508
|
|
|
464
509
|
|
|
465
510
|
|
|
466
|
-
class $50f6953b9762c03c$export$a7fed597f4b8afd8 extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
467
|
-
constructor(mainContentRootLocator){
|
|
468
|
-
super(mainContentRootLocator);
|
|
469
|
-
}
|
|
470
|
-
async fillTextInput(textInput, textValue) {
|
|
471
|
-
await textInput.clear();
|
|
472
|
-
await textInput.fill(textValue);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
511
|
class $f0e8ecb73642aac7$export$13ee474454c1948e extends (0, $50f6953b9762c03c$export$a7fed597f4b8afd8) {
|
|
478
|
-
constructor(page){
|
|
479
|
-
super(page.locator(".dip-view-body"));
|
|
512
|
+
constructor(parentLocator, page){
|
|
513
|
+
super(parentLocator, page.locator(".dip-view-body"));
|
|
480
514
|
this.page = page;
|
|
481
515
|
this.inputName = page.locator('input[name="name"]');
|
|
482
516
|
this.inputLatestVersion = page.locator('input[name="lastVersion"]');
|
|
@@ -564,8 +598,8 @@ class $f0e8ecb73642aac7$export$13ee474454c1948e extends (0, $50f6953b9762c03c$ex
|
|
|
564
598
|
|
|
565
599
|
|
|
566
600
|
class $749097e2d65c1527$export$2b77a92f1a5ad772 extends (0, $b031bda8df4df200$export$6e2c8f0811a474ce) {
|
|
567
|
-
constructor(page){
|
|
568
|
-
super(page.locator(".xl-react-modal-content"));
|
|
601
|
+
constructor(parentLocator, page){
|
|
602
|
+
super(parentLocator, page.locator(".xl-react-modal-content"));
|
|
569
603
|
this.header = page.locator(".modal-header");
|
|
570
604
|
this.body = page.locator(".modal-body");
|
|
571
605
|
this.footer = page.locator(".modal-footer");
|
|
@@ -574,8 +608,8 @@ class $749097e2d65c1527$export$2b77a92f1a5ad772 extends (0, $b031bda8df4df200$ex
|
|
|
574
608
|
|
|
575
609
|
|
|
576
610
|
class $1b7c532a5b0861f3$export$bd6452a745ffdb18 extends (0, $749097e2d65c1527$export$2b77a92f1a5ad772) {
|
|
577
|
-
constructor(page){
|
|
578
|
-
super(page);
|
|
611
|
+
constructor(parentLocator, page){
|
|
612
|
+
super(parentLocator, page);
|
|
579
613
|
this.deleteButton = page.getByRole("button", {
|
|
580
614
|
name: "Delete",
|
|
581
615
|
exact: true
|
|
@@ -584,6 +618,10 @@ class $1b7c532a5b0861f3$export$bd6452a745ffdb18 extends (0, $749097e2d65c1527$ex
|
|
|
584
618
|
name: "Cancel",
|
|
585
619
|
exact: true
|
|
586
620
|
});
|
|
621
|
+
this.moveButton = page.getByRole("button", {
|
|
622
|
+
name: "Move",
|
|
623
|
+
exact: true
|
|
624
|
+
});
|
|
587
625
|
}
|
|
588
626
|
async clickDelete() {
|
|
589
627
|
await this.footer.locator(this.deleteButton).click();
|
|
@@ -591,6 +629,9 @@ class $1b7c532a5b0861f3$export$bd6452a745ffdb18 extends (0, $749097e2d65c1527$ex
|
|
|
591
629
|
async clickCancel() {
|
|
592
630
|
await this.footer.locator(this.cancelButton).click();
|
|
593
631
|
}
|
|
632
|
+
async clickMove() {
|
|
633
|
+
await this.footer.locator(this.moveButton).click();
|
|
634
|
+
}
|
|
594
635
|
}
|
|
595
636
|
|
|
596
637
|
|
|
@@ -605,8 +646,8 @@ class $26b4a6e9a3909559$export$5a20f96f6e2d29e9 {
|
|
|
605
646
|
this.page = page;
|
|
606
647
|
this.contextMenu = new (0, $9dd8dd888e812fd7$export$133beb65adbc45a3)(page);
|
|
607
648
|
this.tab = new (0, $0a8f56f4ec9e6ec3$export$3e41faf802a29e71)(page);
|
|
608
|
-
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page);
|
|
609
|
-
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page);
|
|
649
|
+
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page.locator(".Pane.vertical.Pane2"), page);
|
|
650
|
+
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page.locator(".xl-react-modal-open"), page);
|
|
610
651
|
}
|
|
611
652
|
/**
|
|
612
653
|
* Create new ci under any explorer package by providing following parameters.
|
|
@@ -636,10 +677,13 @@ class $26b4a6e9a3909559$export$5a20f96f6e2d29e9 {
|
|
|
636
677
|
* expands the path of CI by separating path from "/"
|
|
637
678
|
* @param parentNodeId
|
|
638
679
|
*/ async expandNodePath(parentNodeId) {
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
|
|
680
|
+
const ci = await this.page.isVisible('div[data-id="' + parentNodeId + '"]');
|
|
681
|
+
if (!ci) {
|
|
682
|
+
const nodeIdParts = $1UEKj$rambda.split("/", parentNodeId);
|
|
683
|
+
for(let ind = 0; ind < nodeIdParts.length; ind++){
|
|
684
|
+
const path = $1UEKj$rambda.join("/", $1UEKj$rambda.take(ind + 1, nodeIdParts));
|
|
685
|
+
await this.expandNode(path);
|
|
686
|
+
}
|
|
643
687
|
}
|
|
644
688
|
}
|
|
645
689
|
/**
|
|
@@ -760,14 +804,32 @@ class $26b4a6e9a3909559$export$5a20f96f6e2d29e9 {
|
|
|
760
804
|
*/ async clickConfirmAndWait() {
|
|
761
805
|
await this.modal.clickDelete();
|
|
762
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
* Move ci
|
|
809
|
+
* @param source_path
|
|
810
|
+
* @param target_path
|
|
811
|
+
*/ async moveCi(source_path, target_path) {
|
|
812
|
+
const source_cipath = this.page.locator('div[data-id="' + source_path + '"]');
|
|
813
|
+
const target_cipath = this.page.locator('div[data-id="' + target_path + '"]');
|
|
814
|
+
await this.expandNodePath(source_path);
|
|
815
|
+
//TODO: Find a better way to make sure target can be expanded without error, current implementation is workaround
|
|
816
|
+
await this.page.locator('div[data-id="' + target_path + '"]').textContent();
|
|
817
|
+
await this.expandNodePath(target_path);
|
|
818
|
+
await source_cipath.dragTo(target_cipath);
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Click Move button on modal window to Move the CIs
|
|
822
|
+
*/ async clickMoveAndWait() {
|
|
823
|
+
await this.modal.clickMove();
|
|
824
|
+
}
|
|
763
825
|
}
|
|
764
826
|
|
|
765
827
|
|
|
766
828
|
|
|
767
829
|
|
|
768
830
|
class $b90c33a29683027b$export$60413e28724d3abd extends (0, $50f6953b9762c03c$export$a7fed597f4b8afd8) {
|
|
769
|
-
constructor(page){
|
|
770
|
-
super(page.locator(".dip-view-body"));
|
|
831
|
+
constructor(parentLocator, page){
|
|
832
|
+
super(parentLocator, page.locator(".dip-view-body"));
|
|
771
833
|
this.page = page;
|
|
772
834
|
this.inputName = page.locator('input[name="name"]');
|
|
773
835
|
this.inputLatestVersion = page.locator('input[name="lastVersion"]');
|
|
@@ -860,12 +922,12 @@ class $1fae0b7de3d21f52$export$bf4a5dd3be690f6b extends (0, $ae23b16684112d0b$ex
|
|
|
860
922
|
constructor(page){
|
|
861
923
|
super(page);
|
|
862
924
|
this.contextMenu = new (0, $9dd8dd888e812fd7$export$133beb65adbc45a3)(page);
|
|
863
|
-
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page);
|
|
925
|
+
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page.locator(".Pane.vertical.Pane2"), page);
|
|
864
926
|
this.tab = new (0, $0a8f56f4ec9e6ec3$export$3e41faf802a29e71)(page);
|
|
865
927
|
this.util = new (0, $dcea22adf7bc9211$export$7db63d2c950874b5)(this, page);
|
|
866
|
-
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page);
|
|
928
|
+
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page.locator(".xl-react-modal-open"), page);
|
|
867
929
|
this.commonUtil = new (0, $26b4a6e9a3909559$export$5a20f96f6e2d29e9)(page);
|
|
868
|
-
this.appForm = new (0, $b90c33a29683027b$export$60413e28724d3abd)(page);
|
|
930
|
+
this.appForm = new (0, $b90c33a29683027b$export$60413e28724d3abd)(page.locator(".Pane.vertical.Pane2"), page);
|
|
869
931
|
}
|
|
870
932
|
}
|
|
871
933
|
|
|
@@ -889,8 +951,8 @@ class $114862ed97d76403$export$36d69433c4f81145 extends (0, $ae23b16684112d0b$ex
|
|
|
889
951
|
|
|
890
952
|
|
|
891
953
|
class $465c25c02ae34e1f$export$855563f8bdb36207 extends (0, $50f6953b9762c03c$export$a7fed597f4b8afd8) {
|
|
892
|
-
constructor(page){
|
|
893
|
-
super(page.locator(".dip-view-body"));
|
|
954
|
+
constructor(parentLocator, page){
|
|
955
|
+
super(parentLocator, page.locator(".dip-view-body"));
|
|
894
956
|
this.page = page;
|
|
895
957
|
this.inputName = page.locator('input[name="name"]');
|
|
896
958
|
this.inputLatestVersion = page.locator('input[name="lastVersion"]');
|
|
@@ -1023,11 +1085,11 @@ class $0b66c9d41a4ba704$export$8ef81de2d4ebb0b9 extends (0, $ae23b16684112d0b$ex
|
|
|
1023
1085
|
constructor(page){
|
|
1024
1086
|
super(page);
|
|
1025
1087
|
this.contextMenu = new (0, $9dd8dd888e812fd7$export$133beb65adbc45a3)(page);
|
|
1026
|
-
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page);
|
|
1088
|
+
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page.locator(".Pane.vertical.Pane2"), page);
|
|
1027
1089
|
this.tab = new (0, $0a8f56f4ec9e6ec3$export$3e41faf802a29e71)(page);
|
|
1028
|
-
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page);
|
|
1090
|
+
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page.locator(".xl-react-modal-open"), page);
|
|
1029
1091
|
this.commonUtil = new (0, $26b4a6e9a3909559$export$5a20f96f6e2d29e9)(page);
|
|
1030
|
-
this.configForm = new (0, $465c25c02ae34e1f$export$855563f8bdb36207)(page);
|
|
1092
|
+
this.configForm = new (0, $465c25c02ae34e1f$export$855563f8bdb36207)(page.locator(".Pane.vertical.Pane2"), page);
|
|
1031
1093
|
this.util = new (0, $168ec5e952b92f0d$export$ad55ec59bf82c4fc)(this, page);
|
|
1032
1094
|
}
|
|
1033
1095
|
}
|
|
@@ -1042,8 +1104,8 @@ class $0b66c9d41a4ba704$export$8ef81de2d4ebb0b9 extends (0, $ae23b16684112d0b$ex
|
|
|
1042
1104
|
|
|
1043
1105
|
|
|
1044
1106
|
class $fef9a424af55e937$export$21cde1e6a73cf500 extends (0, $50f6953b9762c03c$export$a7fed597f4b8afd8) {
|
|
1045
|
-
constructor(page){
|
|
1046
|
-
super(page.locator(".dip-view-body"));
|
|
1107
|
+
constructor(parentLocator, page){
|
|
1108
|
+
super(parentLocator, page.locator(".dip-view-body"));
|
|
1047
1109
|
this.page = page;
|
|
1048
1110
|
this.formSection = page.locator(".xl-react-components.xl-react-dip-dynamic-form");
|
|
1049
1111
|
this.inputName = page.locator('input[name="name"]');
|
|
@@ -1137,11 +1199,11 @@ class $6d811907766c6ed0$export$2c95c5c5be4fb9b0 extends (0, $ae23b16684112d0b$ex
|
|
|
1137
1199
|
constructor(page){
|
|
1138
1200
|
super(page);
|
|
1139
1201
|
this.contextMenu = new (0, $9dd8dd888e812fd7$export$133beb65adbc45a3)(page);
|
|
1140
|
-
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page);
|
|
1202
|
+
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page.locator(".Pane.vertical.Pane2"), page);
|
|
1141
1203
|
this.tab = new (0, $0a8f56f4ec9e6ec3$export$3e41faf802a29e71)(page);
|
|
1142
|
-
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page);
|
|
1204
|
+
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page.locator(".xl-react-modal-open"), page);
|
|
1143
1205
|
this.commonUtil = new (0, $26b4a6e9a3909559$export$5a20f96f6e2d29e9)(page);
|
|
1144
|
-
this.envForm = new (0, $fef9a424af55e937$export$21cde1e6a73cf500)(page);
|
|
1206
|
+
this.envForm = new (0, $fef9a424af55e937$export$21cde1e6a73cf500)(page.locator(".xl-react-modal-open"), page);
|
|
1145
1207
|
this.util = new (0, $46c3ae45662ff7ad$export$b8a8d62f66d27fa1)(this, page);
|
|
1146
1208
|
}
|
|
1147
1209
|
}
|
|
@@ -1157,9 +1219,9 @@ class $2176608eec52f17d$export$1f6beddb119e759b extends (0, $ae23b16684112d0b$ex
|
|
|
1157
1219
|
constructor(page){
|
|
1158
1220
|
super(page);
|
|
1159
1221
|
this.contextMenu = new (0, $9dd8dd888e812fd7$export$133beb65adbc45a3)(page);
|
|
1160
|
-
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page);
|
|
1222
|
+
this.form = new (0, $f0e8ecb73642aac7$export$13ee474454c1948e)(page.locator(".Pane.vertical.Pane2"), page);
|
|
1161
1223
|
this.tab = new (0, $0a8f56f4ec9e6ec3$export$3e41faf802a29e71)(page);
|
|
1162
|
-
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page);
|
|
1224
|
+
this.modal = new (0, $1b7c532a5b0861f3$export$bd6452a745ffdb18)(page.locator(".xl-react-modal-open"), page);
|
|
1163
1225
|
this.commonUtil = new (0, $26b4a6e9a3909559$export$5a20f96f6e2d29e9)(page);
|
|
1164
1226
|
}
|
|
1165
1227
|
}
|