@digital-ai/devops-page-object-release 0.0.56 → 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 +7 -0
- package/dist/main.js +111 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +111 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -5347,7 +5347,25 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
|
|
|
5347
5347
|
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
5348
5348
|
name: "About"
|
|
5349
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() {
|
|
5350
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();
|
|
5351
5369
|
}
|
|
5352
5370
|
}
|
|
5353
5371
|
|
|
@@ -7337,6 +7355,97 @@ class $a4ba753fcd18eb4a$var$RisksProfilePage extends (0, $9626bc9256ce31f7$expor
|
|
|
7337
7355
|
|
|
7338
7356
|
|
|
7339
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
|
+
|
|
7340
7449
|
class $2cbb78eec86d0a9f$export$2edf430132ca35d0 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7341
7450
|
constructor(page){
|
|
7342
7451
|
super(page);
|
|
@@ -7362,10 +7471,12 @@ class $2cbb78eec86d0a9f$export$2edf430132ca35d0 extends (0, $9626bc9256ce31f7$ex
|
|
|
7362
7471
|
async openAdvanced() {
|
|
7363
7472
|
await this.util.openSideNavMenu("Advanced");
|
|
7364
7473
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Advanced")).toBeVisible();
|
|
7474
|
+
return new (0, $d8a9b26df8057088$export$e0a0fc7a891dfa75)(this.page);
|
|
7365
7475
|
}
|
|
7366
7476
|
async openExperimental() {
|
|
7367
7477
|
await this.util.openSideNavMenu("Experimental");
|
|
7368
7478
|
await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Experimental")).toBeVisible();
|
|
7479
|
+
return new (0, $ffe2117ab68d6e97$export$c28592575acb4efc)(this.page);
|
|
7369
7480
|
}
|
|
7370
7481
|
async openNotifications() {
|
|
7371
7482
|
await this.util.openSideNavMenu("Notifications");
|