@digital-ai/devops-page-object-release 0.0.111 → 0.0.113
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 +14 -11
- package/dist/main.js.map +1 -1
- package/dist/module.js +14 -11
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -1489,8 +1489,7 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
|
|
|
1489
1489
|
}
|
|
1490
1490
|
async abort(comment) {
|
|
1491
1491
|
await this.page.getByTestId('single-action-button').click();
|
|
1492
|
-
await this.page.
|
|
1493
|
-
await this.page.getByTestId('task-action-comment').fill(comment);
|
|
1492
|
+
await this.page.locator(`textarea[name="comment"]`).fill(comment);
|
|
1494
1493
|
await this.page.locator('button', {
|
|
1495
1494
|
hasText: 'Abort'
|
|
1496
1495
|
}).click();
|
|
@@ -2231,7 +2230,7 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
2231
2230
|
this.attachment = new (0, $9c357602b6f466e7$export$aa59788fdecae2f2)(page);
|
|
2232
2231
|
this.attribute = new (0, $115d1e40e2564777$export$a87b4660f21fba58)(page);
|
|
2233
2232
|
this.cancelButton = this.page.getByTestId('task-action-cancel');
|
|
2234
|
-
this.commentBox = this.page.
|
|
2233
|
+
this.commentBox = this.page.locator(`textarea[name="comment"]`);
|
|
2235
2234
|
this.confirm = this.page.locator('.popper-action-buttons').getByTestId('dot-button');
|
|
2236
2235
|
this.config = new (0, $e44e9af564fb00f7$export$64c93bc7fb9ca44e)(page);
|
|
2237
2236
|
this.condition = new (0, $3fa741329d8067d5$export$d4865631ba74f3e2)(page);
|
|
@@ -3316,8 +3315,8 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
3316
3315
|
}
|
|
3317
3316
|
async completeSelectedTasks(comment) {
|
|
3318
3317
|
await this.completeButton.click();
|
|
3319
|
-
await this.page.
|
|
3320
|
-
await this.page.locator('.
|
|
3318
|
+
await this.page.locator(`textarea[name="comment"]`).fill(comment);
|
|
3319
|
+
await this.page.locator('.dot-dialog').getByRole('button', {
|
|
3321
3320
|
name: 'Complete'
|
|
3322
3321
|
}).click();
|
|
3323
3322
|
return this;
|
|
@@ -3332,11 +3331,16 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
3332
3331
|
'Reopen',
|
|
3333
3332
|
'Retry',
|
|
3334
3333
|
'Fail'
|
|
3335
|
-
].includes(menuItem)) await this.page.locator(
|
|
3336
|
-
|
|
3334
|
+
].includes(menuItem)) await this.page.locator(`textarea[name="comment"]`).fill('Automation Test Comment');
|
|
3335
|
+
if ([
|
|
3336
|
+
'Delete'
|
|
3337
|
+
].includes(menuItem)) await this.page.getByRole('button', {
|
|
3337
3338
|
name: menuItem,
|
|
3338
3339
|
exact: true
|
|
3339
3340
|
}).click();
|
|
3341
|
+
else await this.page.locator('.dot-dialog').getByRole('button', {
|
|
3342
|
+
name: menuItem
|
|
3343
|
+
}).click();
|
|
3340
3344
|
return this;
|
|
3341
3345
|
}
|
|
3342
3346
|
async addCommentToSelectedTask(comment) {
|
|
@@ -3721,8 +3725,7 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
3721
3725
|
await this.page.locator('div').filter({
|
|
3722
3726
|
hasText: /^Reopen$/
|
|
3723
3727
|
}).click();
|
|
3724
|
-
await this.page.
|
|
3725
|
-
await this.page.getByTestId('task-action-comment').fill(comment);
|
|
3728
|
+
await this.page.locator(`textarea[name="comment"]`).fill(comment);
|
|
3726
3729
|
await this.page.locator('button', {
|
|
3727
3730
|
hasText: 'Reopen'
|
|
3728
3731
|
}).click();
|
|
@@ -7379,8 +7382,8 @@ class $c37c93912f458e81$var$GridView extends (0, $9626bc9256ce31f7$export$2b65d1
|
|
|
7379
7382
|
hasText: action
|
|
7380
7383
|
}).click();
|
|
7381
7384
|
if (action === 'Complete') {
|
|
7382
|
-
await this.page.locator('.
|
|
7383
|
-
await this.page.locator('.
|
|
7385
|
+
await this.page.locator('.base-comment-dialog textarea[name="comment"]').fill('complete');
|
|
7386
|
+
await this.page.locator('.base-comment-dialog button').filter({
|
|
7384
7387
|
hasText: 'Complete'
|
|
7385
7388
|
}).click();
|
|
7386
7389
|
return this;
|