@digital-ai/devops-page-object-release 0.0.118 → 0.0.120
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 +93 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +93 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -5233,11 +5233,10 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
5233
5233
|
}
|
|
5234
5234
|
async expandFolder(folderName) {
|
|
5235
5235
|
const folderRow = this.page.getByRole('listitem').filter({
|
|
5236
|
-
hasText: folderName
|
|
5236
|
+
hasText: new RegExp(`^${folderName}$`)
|
|
5237
5237
|
});
|
|
5238
5238
|
const expandIcon = folderRow.locator('.arrow-right-icon');
|
|
5239
|
-
await (0
|
|
5240
|
-
await expandIcon.click();
|
|
5239
|
+
if (await expandIcon.count() > 0) await expandIcon.click();
|
|
5241
5240
|
return this;
|
|
5242
5241
|
}
|
|
5243
5242
|
async openFolderByRow(folderName) {
|
|
@@ -5383,6 +5382,12 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
|
|
|
5383
5382
|
await this.page.getByTitle(releaseName).click();
|
|
5384
5383
|
await (0, $hOLA6$expect)(this.page.getByLabel('breadcrumb').getByText('Flow')).toBeVisible();
|
|
5385
5384
|
}
|
|
5385
|
+
async expectBreadcrumbToContain(option) {
|
|
5386
|
+
await (0, $hOLA6$expect)(this.page.getByLabel('breadcrumb').getByText(option)).toBeVisible();
|
|
5387
|
+
}
|
|
5388
|
+
async expectFolderOptionInUrl(option) {
|
|
5389
|
+
await (0, $hOLA6$expect)(this.page).toHaveURL(new RegExp(`#\\/folders\\/Applications\\/(Folder[^/]+\\/)+${option.toLowerCase()}(\\?.*)?$`));
|
|
5390
|
+
}
|
|
5386
5391
|
}
|
|
5387
5392
|
|
|
5388
5393
|
|
|
@@ -5660,6 +5665,12 @@ class $2174535b78371022$export$36d69433c4f81145 extends (0, $9626bc9256ce31f7$ex
|
|
|
5660
5665
|
await (0, $hOLA6$expect)(this.page.getByText('Introducing Analytics')).toBeVisible();
|
|
5661
5666
|
await this.page.getByLabel('Close').click();
|
|
5662
5667
|
}
|
|
5668
|
+
async expectGlobalPageToBe(option) {
|
|
5669
|
+
if (option === 'Home') await (0, $hOLA6$expect)(this.page.getByRole('heading', {
|
|
5670
|
+
name: 'Digital.ai Release Home'
|
|
5671
|
+
})).toBeVisible();
|
|
5672
|
+
else await (0, $hOLA6$expect)(this.page.getByLabel('breadcrumb').getByText(option)).toBeVisible();
|
|
5673
|
+
}
|
|
5663
5674
|
}
|
|
5664
5675
|
|
|
5665
5676
|
|
|
@@ -5885,12 +5896,17 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
5885
5896
|
return this;
|
|
5886
5897
|
}
|
|
5887
5898
|
async clickOnSaveButton() {
|
|
5888
|
-
await this.page.
|
|
5899
|
+
await this.page.getByRole('button', {
|
|
5900
|
+
name: 'Save'
|
|
5901
|
+
}).click();
|
|
5889
5902
|
return this;
|
|
5890
5903
|
}
|
|
5891
5904
|
async save() {
|
|
5892
|
-
|
|
5893
|
-
await (0, $hOLA6$expect)(
|
|
5905
|
+
const saveBtn = this.page.getByTestId('save-button');
|
|
5906
|
+
await (0, $hOLA6$expect)(saveBtn).toBeEnabled({
|
|
5907
|
+
timeout: 5000
|
|
5908
|
+
});
|
|
5909
|
+
await saveBtn.click();
|
|
5894
5910
|
return this;
|
|
5895
5911
|
}
|
|
5896
5912
|
async clearEmailInput() {
|
|
@@ -5958,6 +5974,44 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
5958
5974
|
}).click();
|
|
5959
5975
|
await (0, $hOLA6$expect)(this.page.getByText(tokenName)).not.toBeVisible();
|
|
5960
5976
|
}
|
|
5977
|
+
async setDefaultGlobalPage(option) {
|
|
5978
|
+
const dropdown = this.page.getByRole('combobox', {
|
|
5979
|
+
name: 'Default global page select'
|
|
5980
|
+
});
|
|
5981
|
+
const saveButton = this.page.getByTestId('save-button');
|
|
5982
|
+
const current = (await dropdown.innerText()).trim();
|
|
5983
|
+
if (current === option) {
|
|
5984
|
+
await (0, $hOLA6$expect)(saveButton).toBeDisabled();
|
|
5985
|
+
return;
|
|
5986
|
+
}
|
|
5987
|
+
await dropdown.click();
|
|
5988
|
+
await this.page.locator(`[role="option"][data-value="${option.toLowerCase()}"]`).click();
|
|
5989
|
+
await this.page.keyboard.press('Tab');
|
|
5990
|
+
await (0, $hOLA6$expect)(dropdown).toHaveText(option);
|
|
5991
|
+
await (0, $hOLA6$expect)(saveButton).toBeEnabled();
|
|
5992
|
+
await saveButton.click();
|
|
5993
|
+
await (0, $hOLA6$expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
5994
|
+
}
|
|
5995
|
+
async setDefaultFolderPage(option) {
|
|
5996
|
+
const dropdown = this.page.getByRole('combobox', {
|
|
5997
|
+
name: 'Default folder page select'
|
|
5998
|
+
});
|
|
5999
|
+
const saveButton = this.page.getByTestId('save-button');
|
|
6000
|
+
const current = (await dropdown.innerText()).trim();
|
|
6001
|
+
if (current === option) {
|
|
6002
|
+
await (0, $hOLA6$expect)(saveButton).toBeDisabled();
|
|
6003
|
+
return;
|
|
6004
|
+
}
|
|
6005
|
+
await dropdown.click();
|
|
6006
|
+
await this.page.getByRole('option', {
|
|
6007
|
+
name: option
|
|
6008
|
+
}).click();
|
|
6009
|
+
await this.page.keyboard.press('Tab');
|
|
6010
|
+
await (0, $hOLA6$expect)(dropdown).toHaveText(option);
|
|
6011
|
+
await (0, $hOLA6$expect)(saveButton).toBeEnabled();
|
|
6012
|
+
await saveButton.click();
|
|
6013
|
+
await (0, $hOLA6$expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6014
|
+
}
|
|
5961
6015
|
}
|
|
5962
6016
|
|
|
5963
6017
|
|
|
@@ -7384,6 +7438,27 @@ class $c37c93912f458e81$var$GridView extends (0, $9626bc9256ce31f7$export$2b65d1
|
|
|
7384
7438
|
|
|
7385
7439
|
|
|
7386
7440
|
|
|
7441
|
+
class $c18b3da3bfcf7e62$export$fe3c0fe772b75218 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7442
|
+
constructor(page){
|
|
7443
|
+
super(page);
|
|
7444
|
+
this.filtersButton = this.page.getByTestId('filter-button');
|
|
7445
|
+
this.myTasksRadio = this.page.locator('input[type="radio"][name="assignedTo"][value="assignedToMe"]');
|
|
7446
|
+
}
|
|
7447
|
+
async goToTasksPage() {
|
|
7448
|
+
await this.page.locator('ul.side-nav li').getByLabel('Tasks', {
|
|
7449
|
+
exact: true
|
|
7450
|
+
}).click();
|
|
7451
|
+
}
|
|
7452
|
+
async clickFiltersButton() {
|
|
7453
|
+
await this.filtersButton.click();
|
|
7454
|
+
}
|
|
7455
|
+
async clickMyTasks() {
|
|
7456
|
+
await this.myTasksRadio.click();
|
|
7457
|
+
}
|
|
7458
|
+
}
|
|
7459
|
+
|
|
7460
|
+
|
|
7461
|
+
|
|
7387
7462
|
|
|
7388
7463
|
|
|
7389
7464
|
|
|
@@ -9371,6 +9446,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
9371
9446
|
this.applicationPage = new (0, $c313b10398604df2$export$1533b625ec0c75e2)(page);
|
|
9372
9447
|
this.taskDetailsPage = new (0, $9ca6e63d357957dd$export$922081b54f2ab994)(page);
|
|
9373
9448
|
this.taskListPage = new (0, $c37c93912f458e81$export$60c3bfa6385e2a10)(page);
|
|
9449
|
+
this.taskFilterPage = new (0, $c18b3da3bfcf7e62$export$fe3c0fe772b75218)(page);
|
|
9374
9450
|
this.templatePage = new (0, $0c4084f199d70d72$export$8c8e7207254accc2)(page);
|
|
9375
9451
|
this.templateListPage = new (0, $171d52b372748c0b$export$7e1d435fa474ee21)(page);
|
|
9376
9452
|
this.personalSettingsPage = new (0, $a5932af323ac015a$export$3cf9c90f870f31bd)(page);
|
|
@@ -9388,11 +9464,11 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
9388
9464
|
return this.openReleaseOrTemplate(id, false);
|
|
9389
9465
|
}
|
|
9390
9466
|
async openFolder(id) {
|
|
9391
|
-
await this.page.goto(`./#/folders/${id}
|
|
9392
|
-
await this.page.waitForSelector('#releases-content');
|
|
9467
|
+
await this.page.goto(`./#/folders/${id}`);
|
|
9393
9468
|
return new (0, $50c91328c9110668$export$b453f08936c58edb)(this.page);
|
|
9394
9469
|
}
|
|
9395
9470
|
async openFolderByName(folderName) {
|
|
9471
|
+
await this.page.goto(`./#/folders`);
|
|
9396
9472
|
const folder = this.page.getByTitle(folderName);
|
|
9397
9473
|
await (0, $hOLA6$expect)(folder).toBeVisible({
|
|
9398
9474
|
timeout: 5000
|
|
@@ -9435,6 +9511,11 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
9435
9511
|
name: 'Home'
|
|
9436
9512
|
}).click();
|
|
9437
9513
|
}
|
|
9514
|
+
async gotoHomePageByBreadcrumb() {
|
|
9515
|
+
await this.page.getByLabel('breadcrumb').getByRole('link', {
|
|
9516
|
+
name: 'Home'
|
|
9517
|
+
}).click();
|
|
9518
|
+
}
|
|
9438
9519
|
async gotoFolderPage() {
|
|
9439
9520
|
await this.page.locator('ul.side-nav li').getByLabel('Folders', {
|
|
9440
9521
|
exact: true
|
|
@@ -9546,6 +9627,10 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
|
|
|
9546
9627
|
await this.page.goto('#/task-access');
|
|
9547
9628
|
return new (0, $2c3301798e261060$export$8da2fa93430be6ca)(this.page);
|
|
9548
9629
|
}
|
|
9630
|
+
async gotoTaskFilterPage() {
|
|
9631
|
+
await this.page.goto('#/task-filter');
|
|
9632
|
+
return new (0, $c18b3da3bfcf7e62$export$fe3c0fe772b75218)(this.page);
|
|
9633
|
+
}
|
|
9549
9634
|
}
|
|
9550
9635
|
|
|
9551
9636
|
|