@digital-ai/devops-page-object-release 0.0.55 → 0.0.57
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 +128 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +128 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +32 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -1841,7 +1841,20 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1841
1841
|
async expectStartDateToBe(date) {
|
|
1842
1842
|
(0, $hOLA6$expect)(await this.page.locator(".flex-section.column").filter({
|
|
1843
1843
|
hasText: "Start Date"
|
|
1844
|
-
}).locator(".task-date-view-content").getAttribute("aria-label")).toContain(date);
|
|
1844
|
+
}).locator(".task-date-view-content .dot-avatar").getAttribute("aria-label")).toContain(date);
|
|
1845
|
+
}
|
|
1846
|
+
async expectStartDateWarningBannerToNotBePresent() {
|
|
1847
|
+
const alertBanner = this.page.locator(".dot-alert-banner");
|
|
1848
|
+
await (0, $hOLA6$expect)(alertBanner).not.toBeVisible();
|
|
1849
|
+
}
|
|
1850
|
+
async expectStartDateWarningBanner(text, originalScheduledStartDate) {
|
|
1851
|
+
const alertBanner = this.page.locator(".dot-alert-banner");
|
|
1852
|
+
await (0, $hOLA6$expect)(alertBanner).toBeVisible();
|
|
1853
|
+
await (0, $hOLA6$expect)(alertBanner).toContainText(text);
|
|
1854
|
+
if (originalScheduledStartDate) {
|
|
1855
|
+
const originalScheduledStartDateText = await this.page.locator('.dot-alert-banner p[data-testid="original-scheduled-start-date"] span').textContent();
|
|
1856
|
+
if (originalScheduledStartDateText) (0, $hOLA6$expect)((0, $hOLA6$moment)(new Date(originalScheduledStartDateText)).format("YYYY-MM-DDTHH:mm")).toBe((0, $hOLA6$moment)(new Date(originalScheduledStartDate)).format("YYYY-MM-DDTHH:mm"));
|
|
1857
|
+
}
|
|
1845
1858
|
}
|
|
1846
1859
|
async expectEndDateToBeDisplayed() {
|
|
1847
1860
|
await (0, $hOLA6$expect)(this.page.locator(".flex-section.column").filter({
|
|
@@ -5334,7 +5347,25 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
|
|
|
5334
5347
|
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
5335
5348
|
name: "About"
|
|
5336
5349
|
})).toBeVisible();
|
|
5350
|
+
return new $f1bf370bb7f683ca$export$2b77a92f1a5ad772(this.page);
|
|
5351
|
+
}
|
|
5352
|
+
}
|
|
5353
|
+
class $f1bf370bb7f683ca$export$2b77a92f1a5ad772 {
|
|
5354
|
+
constructor(page){
|
|
5355
|
+
this.modalBody = page.locator(".modal-body");
|
|
5356
|
+
this.closeIcon = page.locator(".xl-icon.close-icon");
|
|
5357
|
+
}
|
|
5358
|
+
async closeModal() {
|
|
5337
5359
|
await this.closeIcon.click();
|
|
5360
|
+
await (0, $hOLA6$expect)(this.modalBody).not.toBeVisible();
|
|
5361
|
+
}
|
|
5362
|
+
async validateLicenseInfo() {
|
|
5363
|
+
await (0, $hOLA6$expect)(this.modalBody).toBeVisible();
|
|
5364
|
+
await (0, $hOLA6$expect)(this.modalBody).toContainText("Expires on");
|
|
5365
|
+
await (0, $hOLA6$expect)(this.modalBody).toContainText("1");
|
|
5366
|
+
await (0, $hOLA6$expect)(this.modalBody).toContainText("35");
|
|
5367
|
+
await (0, $hOLA6$expect)(this.modalBody).toContainText("Licensed to XL Release Dev Team");
|
|
5368
|
+
await this.closeModal();
|
|
5338
5369
|
}
|
|
5339
5370
|
}
|
|
5340
5371
|
|
|
@@ -6635,6 +6666,7 @@ class $527f56b2e41ad18d$var$TemplateVariableModal extends (0, $9626bc9256ce31f7$
|
|
|
6635
6666
|
|
|
6636
6667
|
|
|
6637
6668
|
|
|
6669
|
+
|
|
6638
6670
|
class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
6639
6671
|
constructor(page){
|
|
6640
6672
|
super(page);
|
|
@@ -6645,6 +6677,7 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
6645
6677
|
this.triggers = new (0, $8f36d138075416d2$export$899a7095bab1879d)(page);
|
|
6646
6678
|
this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
|
|
6647
6679
|
this.variables = new (0, $527f56b2e41ad18d$export$e0f84914460c3382)(page);
|
|
6680
|
+
this.plannerView = new (0, $a546aadb4e6fa16a$export$5a82be0a2a261cc6)(page);
|
|
6648
6681
|
}
|
|
6649
6682
|
async openTemplateMenu(menuItem) {
|
|
6650
6683
|
await this.page.locator(`navigation-sidebar ul li`).getByText(menuItem, {
|
|
@@ -6728,6 +6761,7 @@ class $0c4084f199d70d72$export$8c8e7207254accc2 extends (0, $9626bc9256ce31f7$ex
|
|
|
6728
6761
|
async openPlannerView() {
|
|
6729
6762
|
await this.util.openSideNavMenu("Planner");
|
|
6730
6763
|
await (0, $hOLA6$expect)(this.page.locator(".gantt-container")).toBeVisible();
|
|
6764
|
+
return this.plannerView;
|
|
6731
6765
|
}
|
|
6732
6766
|
async openCodeView() {
|
|
6733
6767
|
await this.util.openSideNavMenu("Code");
|
|
@@ -7321,6 +7355,97 @@ class $a4ba753fcd18eb4a$var$RisksProfilePage extends (0, $9626bc9256ce31f7$expor
|
|
|
7321
7355
|
|
|
7322
7356
|
|
|
7323
7357
|
|
|
7358
|
+
|
|
7359
|
+
|
|
7360
|
+
class $d8a9b26df8057088$export$e0a0fc7a891dfa75 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7361
|
+
constructor(page){
|
|
7362
|
+
super(page);
|
|
7363
|
+
}
|
|
7364
|
+
async expectCards(cardTitles) {
|
|
7365
|
+
await (0, $hOLA6$expect)(this.page.locator(`.settings-card`)).toHaveCount(cardTitles.length);
|
|
7366
|
+
for(let i = 0; i < cardTitles.length; i++){
|
|
7367
|
+
const cardTitle = cardTitles[i];
|
|
7368
|
+
await (0, $hOLA6$expect)(this.page.locator(`.settings-card`).filter({
|
|
7369
|
+
hasText: cardTitle
|
|
7370
|
+
})).toBeVisible();
|
|
7371
|
+
}
|
|
7372
|
+
return this;
|
|
7373
|
+
}
|
|
7374
|
+
async save() {
|
|
7375
|
+
await this.page.getByTestId(`save-button`).click();
|
|
7376
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("success")).toBeVisible();
|
|
7377
|
+
await (0, $hOLA6$expect)(this.page.locator(".success").filter({
|
|
7378
|
+
hasText: "Changes saved successfully"
|
|
7379
|
+
})).toBeVisible();
|
|
7380
|
+
await (0, $hOLA6$expect)(this.page.getByTestId(`save-button`)).toBeDisabled();
|
|
7381
|
+
return this;
|
|
7382
|
+
}
|
|
7383
|
+
async reset() {
|
|
7384
|
+
await this.page.getByTestId(`reset-button`).click();
|
|
7385
|
+
await (0, $hOLA6$expect)(this.page.getByTestId("reset-button")).toBeDisabled();
|
|
7386
|
+
return this;
|
|
7387
|
+
}
|
|
7388
|
+
}
|
|
7389
|
+
|
|
7390
|
+
|
|
7391
|
+
|
|
7392
|
+
|
|
7393
|
+
class $ffe2117ab68d6e97$export$c28592575acb4efc extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7394
|
+
constructor(page){
|
|
7395
|
+
super(page);
|
|
7396
|
+
}
|
|
7397
|
+
async expectCards(cardTitles) {
|
|
7398
|
+
await (0, $hOLA6$expect)(this.page.locator(`.settings-card .dot-card-header-title`)).toHaveCount(cardTitles.length);
|
|
7399
|
+
for(let i = 0; i < cardTitles.length; i++){
|
|
7400
|
+
const cardTitle = cardTitles[i];
|
|
7401
|
+
await (0, $hOLA6$expect)(this.page.locator(`.settings-card .dot-card-header-title`).filter({
|
|
7402
|
+
hasText: cardTitle
|
|
7403
|
+
})).toBeVisible();
|
|
7404
|
+
}
|
|
7405
|
+
return this;
|
|
7406
|
+
}
|
|
7407
|
+
async getFeatureControl(feature, control) {
|
|
7408
|
+
return this.page.locator(`.settings-card`).filter({
|
|
7409
|
+
hasText: feature
|
|
7410
|
+
}).locator(`#${control}`);
|
|
7411
|
+
}
|
|
7412
|
+
async expectFeatureToBeEnabled(feature, state, control) {
|
|
7413
|
+
if (state) await (0, $hOLA6$expect)(await this.getFeatureControl(feature, control)).toBeChecked();
|
|
7414
|
+
else await (0, $hOLA6$expect)(await this.getFeatureControl(feature, control)).not.toBeChecked();
|
|
7415
|
+
return this;
|
|
7416
|
+
}
|
|
7417
|
+
async expectSaveToBeEnabled(state) {
|
|
7418
|
+
if (state) await (0, $hOLA6$expect)(this.page.getByTestId(`save-button`)).toBeEnabled();
|
|
7419
|
+
else await (0, $hOLA6$expect)(this.page.getByTestId(`save-button`)).not.toBeEnabled();
|
|
7420
|
+
return this;
|
|
7421
|
+
}
|
|
7422
|
+
async save() {
|
|
7423
|
+
await this.page.getByTestId(`save-button`).click();
|
|
7424
|
+
await (0, $hOLA6$expect)(this.page.getByLabel("success")).toBeVisible();
|
|
7425
|
+
await (0, $hOLA6$expect)(this.page.locator(".success").filter({
|
|
7426
|
+
hasText: "Changes saved successfully"
|
|
7427
|
+
})).toBeVisible();
|
|
7428
|
+
await (0, $hOLA6$expect)(this.page.getByTestId(`save-button`)).toBeDisabled();
|
|
7429
|
+
return this;
|
|
7430
|
+
}
|
|
7431
|
+
async expectResetToBeEnabled(state) {
|
|
7432
|
+
if (state) await (0, $hOLA6$expect)(this.page.getByTestId("reset-button")).toBeEnabled();
|
|
7433
|
+
else await (0, $hOLA6$expect)(this.page.getByTestId("reset-button")).not.toBeEnabled();
|
|
7434
|
+
return this;
|
|
7435
|
+
}
|
|
7436
|
+
async disableFeature(feature, control) {
|
|
7437
|
+
await this.page.locator(`.settings-card`).filter({
|
|
7438
|
+
hasText: feature
|
|
7439
|
+
}).locator(`#${control}`).uncheck();
|
|
7440
|
+
return this;
|
|
7441
|
+
}
|
|
7442
|
+
async expectToBeSaved() {
|
|
7443
|
+
await (0, $hOLA6$expect)(this.page.locator('.dot-snackbar[severity="success"]')).toBeVisible();
|
|
7444
|
+
return this;
|
|
7445
|
+
}
|
|
7446
|
+
}
|
|
7447
|
+
|
|
7448
|
+
|
|
7324
7449
|
class $2cbb78eec86d0a9f$export$2edf430132ca35d0 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7325
7450
|
constructor(page){
|
|
7326
7451
|
super(page);
|
|
@@ -7346,10 +7471,12 @@ class $2cbb78eec86d0a9f$export$2edf430132ca35d0 extends (0, $9626bc9256ce31f7$ex
|
|
|
7346
7471
|
async openAdvanced() {
|
|
7347
7472
|
await this.util.openSideNavMenu("Advanced");
|
|
7348
7473
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Advanced")).toBeVisible();
|
|
7474
|
+
return new (0, $d8a9b26df8057088$export$e0a0fc7a891dfa75)(this.page);
|
|
7349
7475
|
}
|
|
7350
7476
|
async openExperimental() {
|
|
7351
7477
|
await this.util.openSideNavMenu("Experimental");
|
|
7352
7478
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Experimental")).toBeVisible();
|
|
7479
|
+
return new (0, $ffe2117ab68d6e97$export$c28592575acb4efc)(this.page);
|
|
7353
7480
|
}
|
|
7354
7481
|
async openNotifications() {
|
|
7355
7482
|
await this.util.openSideNavMenu("Notifications");
|