@digital-ai/devops-page-object-release 0.0.58 → 0.0.60
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 +17 -0
- package/dist/main.js +605 -45
- package/dist/main.js.map +1 -1
- package/dist/module.js +605 -45
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +133 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4506,7 +4506,7 @@ class $9b9a8c3da392d020$var$Phase extends (0, $f8721861c660dd88$export$2b65d1d97
|
|
|
4506
4506
|
}
|
|
4507
4507
|
async expectSnackbarSuccessMessage(message) {
|
|
4508
4508
|
const snackbar = this.page.locator('.dot-snackbar[severity="success"]');
|
|
4509
|
-
await (0, $kKeXs$playwrighttest.expect)(snackbar.locator("
|
|
4509
|
+
await (0, $kKeXs$playwrighttest.expect)(snackbar.locator('[aria-label="success"]')).toHaveText(message);
|
|
4510
4510
|
await snackbar.getByRole("button").click();
|
|
4511
4511
|
}
|
|
4512
4512
|
async closeContextMenu() {
|
|
@@ -4515,6 +4515,12 @@ class $9b9a8c3da392d020$var$Phase extends (0, $f8721861c660dd88$export$2b65d1d97
|
|
|
4515
4515
|
async expectTaskBorderWithColor(taskName, color) {
|
|
4516
4516
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.task-box:has-text('${taskName}')`)).toHaveCSS("border-top-color", color);
|
|
4517
4517
|
}
|
|
4518
|
+
async pasteTaskFromTaskGenerator() {
|
|
4519
|
+
await this.phaseLocator.getByText("Add task").click();
|
|
4520
|
+
const pasteButton = this.page.locator('button[data-testid="paste-copied-task-btn"]');
|
|
4521
|
+
await (0, $kKeXs$playwrighttest.expect)(pasteButton).toBeEnabled();
|
|
4522
|
+
await pasteButton.click();
|
|
4523
|
+
}
|
|
4518
4524
|
async addTaskInPhase(taskTitle, taskGroup, taskType) {
|
|
4519
4525
|
await this.phaseLocator.getByText("Add task").click();
|
|
4520
4526
|
await this.page.locator("#task-selector").hover();
|
|
@@ -8291,53 +8297,20 @@ class $ea5452748687c9a2$var$RisksProfilePage extends (0, $f8721861c660dd88$expor
|
|
|
8291
8297
|
|
|
8292
8298
|
|
|
8293
8299
|
|
|
8294
|
-
|
|
8295
8300
|
class $a4875a75884c9da0$export$e0a0fc7a891dfa75 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8296
8301
|
constructor(page){
|
|
8297
8302
|
super(page);
|
|
8298
8303
|
}
|
|
8299
|
-
async expectCards(cardTitles) {
|
|
8300
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.settings-card`)).toHaveCount(cardTitles.length);
|
|
8301
|
-
for(let i = 0; i < cardTitles.length; i++){
|
|
8302
|
-
const cardTitle = cardTitles[i];
|
|
8303
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.settings-card`).filter({
|
|
8304
|
-
hasText: cardTitle
|
|
8305
|
-
})).toBeVisible();
|
|
8306
|
-
}
|
|
8307
|
-
return this;
|
|
8308
|
-
}
|
|
8309
|
-
async save() {
|
|
8310
|
-
await this.page.getByTestId(`save-button`).click();
|
|
8311
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("success")).toBeVisible();
|
|
8312
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".success").filter({
|
|
8313
|
-
hasText: "Changes saved successfully"
|
|
8314
|
-
})).toBeVisible();
|
|
8315
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId(`save-button`)).toBeDisabled();
|
|
8316
|
-
return this;
|
|
8317
|
-
}
|
|
8318
|
-
async reset() {
|
|
8319
|
-
await this.page.getByTestId(`reset-button`).click();
|
|
8320
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("reset-button")).toBeDisabled();
|
|
8321
|
-
return this;
|
|
8322
|
-
}
|
|
8323
8304
|
}
|
|
8324
8305
|
|
|
8325
8306
|
|
|
8326
8307
|
|
|
8327
8308
|
|
|
8309
|
+
|
|
8328
8310
|
class $d68d07ad57a54349$export$c28592575acb4efc extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8329
8311
|
constructor(page){
|
|
8330
8312
|
super(page);
|
|
8331
|
-
|
|
8332
|
-
async expectCards(cardTitles) {
|
|
8333
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.settings-card .dot-card-header-title`)).toHaveCount(cardTitles.length);
|
|
8334
|
-
for(let i = 0; i < cardTitles.length; i++){
|
|
8335
|
-
const cardTitle = cardTitles[i];
|
|
8336
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.settings-card .dot-card-header-title`).filter({
|
|
8337
|
-
hasText: cardTitle
|
|
8338
|
-
})).toBeVisible();
|
|
8339
|
-
}
|
|
8340
|
-
return this;
|
|
8313
|
+
this.settings = new (0, $dbc8f157e7b24b12$export$2edf430132ca35d0)(page);
|
|
8341
8314
|
}
|
|
8342
8315
|
async getFeatureControl(feature, control) {
|
|
8343
8316
|
return this.page.locator(`.settings-card`).filter({
|
|
@@ -8354,15 +8327,6 @@ class $d68d07ad57a54349$export$c28592575acb4efc extends (0, $f8721861c660dd88$ex
|
|
|
8354
8327
|
else await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId(`save-button`)).not.toBeEnabled();
|
|
8355
8328
|
return this;
|
|
8356
8329
|
}
|
|
8357
|
-
async save() {
|
|
8358
|
-
await this.page.getByTestId(`save-button`).click();
|
|
8359
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("success")).toBeVisible();
|
|
8360
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".success").filter({
|
|
8361
|
-
hasText: "Changes saved successfully"
|
|
8362
|
-
})).toBeVisible();
|
|
8363
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId(`save-button`)).toBeDisabled();
|
|
8364
|
-
return this;
|
|
8365
|
-
}
|
|
8366
8330
|
async expectResetToBeEnabled(state) {
|
|
8367
8331
|
if (state) await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("reset-button")).toBeEnabled();
|
|
8368
8332
|
else await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("reset-button")).not.toBeEnabled();
|
|
@@ -8381,6 +8345,508 @@ class $d68d07ad57a54349$export$c28592575acb4efc extends (0, $f8721861c660dd88$ex
|
|
|
8381
8345
|
}
|
|
8382
8346
|
|
|
8383
8347
|
|
|
8348
|
+
|
|
8349
|
+
|
|
8350
|
+
|
|
8351
|
+
class $867b32e9296b4f52$export$c33e44a4a9202d88 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8352
|
+
constructor(page){
|
|
8353
|
+
super(page);
|
|
8354
|
+
this.settings = new (0, $dbc8f157e7b24b12$export$2edf430132ca35d0)(page);
|
|
8355
|
+
}
|
|
8356
|
+
async setStatusPollingInterval(value) {
|
|
8357
|
+
await this.page.locator("#taskStatusInterval").clear();
|
|
8358
|
+
await this.page.locator("#taskStatusInterval").fill(value);
|
|
8359
|
+
return this;
|
|
8360
|
+
}
|
|
8361
|
+
async setListPollingInterval(value) {
|
|
8362
|
+
await this.page.locator("#taskListInterval").clear();
|
|
8363
|
+
await this.page.locator("#taskListInterval").fill(value);
|
|
8364
|
+
return this;
|
|
8365
|
+
}
|
|
8366
|
+
async expectStatusPollingInterval(value) {
|
|
8367
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#taskStatusInterval")).toHaveValue(value);
|
|
8368
|
+
return this;
|
|
8369
|
+
}
|
|
8370
|
+
async expectListPollingInterval(value) {
|
|
8371
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#taskListInterval")).toHaveValue(value);
|
|
8372
|
+
return this;
|
|
8373
|
+
}
|
|
8374
|
+
async restoreDefaultPollingSettings() {
|
|
8375
|
+
const defaultTaskStatusInterval = "1";
|
|
8376
|
+
const defaultTaskListInterval = "30";
|
|
8377
|
+
await this.setStatusPollingInterval(defaultTaskStatusInterval);
|
|
8378
|
+
await this.setListPollingInterval(defaultTaskListInterval);
|
|
8379
|
+
await this.settings.save();
|
|
8380
|
+
return this;
|
|
8381
|
+
}
|
|
8382
|
+
}
|
|
8383
|
+
|
|
8384
|
+
|
|
8385
|
+
|
|
8386
|
+
|
|
8387
|
+
|
|
8388
|
+
class $249973ff3670aa42$export$5c92082c2afdcc2c extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8389
|
+
constructor(page){
|
|
8390
|
+
super(page);
|
|
8391
|
+
this.settings = new (0, $dbc8f157e7b24b12$export$2edf430132ca35d0)(page);
|
|
8392
|
+
}
|
|
8393
|
+
async setWarningThreshold(value) {
|
|
8394
|
+
await this.page.locator("#warningThreshold").clear();
|
|
8395
|
+
await this.page.locator("#warningThreshold").fill(value);
|
|
8396
|
+
return this;
|
|
8397
|
+
}
|
|
8398
|
+
async setErrorThreshold(value) {
|
|
8399
|
+
await this.page.locator("#errorThreshold").clear();
|
|
8400
|
+
await this.page.locator("#errorThreshold").fill(value);
|
|
8401
|
+
return this;
|
|
8402
|
+
}
|
|
8403
|
+
async setCriticalPhaseThreshold(value) {
|
|
8404
|
+
await this.page.locator("#criticalPhaseThreshold").clear();
|
|
8405
|
+
await this.page.locator("#criticalPhaseThreshold").fill(value);
|
|
8406
|
+
return this;
|
|
8407
|
+
}
|
|
8408
|
+
async expectWarningThreshold(value) {
|
|
8409
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#warningThreshold")).toHaveValue(value);
|
|
8410
|
+
return this;
|
|
8411
|
+
}
|
|
8412
|
+
async expectErrorThreshold(value) {
|
|
8413
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#errorThreshold")).toHaveValue(value);
|
|
8414
|
+
return this;
|
|
8415
|
+
}
|
|
8416
|
+
async expectCriticalPhaseThreshold(value) {
|
|
8417
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#criticalPhaseThreshold")).toHaveValue(value);
|
|
8418
|
+
return this;
|
|
8419
|
+
}
|
|
8420
|
+
async restoreDefaultReportSettings() {
|
|
8421
|
+
const defaultWarningThreshold = "2";
|
|
8422
|
+
const defaultErrorThreshold = "4";
|
|
8423
|
+
const defaultCriticalPhaseThreshold = "6";
|
|
8424
|
+
await this.setWarningThreshold(defaultWarningThreshold);
|
|
8425
|
+
await this.setErrorThreshold(defaultErrorThreshold);
|
|
8426
|
+
await this.setCriticalPhaseThreshold(defaultCriticalPhaseThreshold);
|
|
8427
|
+
await this.settings.save();
|
|
8428
|
+
}
|
|
8429
|
+
}
|
|
8430
|
+
|
|
8431
|
+
|
|
8432
|
+
|
|
8433
|
+
|
|
8434
|
+
|
|
8435
|
+
class $346eca383b14ff13$export$3966fb3c0478db68 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8436
|
+
constructor(page){
|
|
8437
|
+
super(page);
|
|
8438
|
+
this.settings = new (0, $dbc8f157e7b24b12$export$2edf430132ca35d0)(page);
|
|
8439
|
+
}
|
|
8440
|
+
async setArchivingSettingsDeleteIntervalUnit(value) {
|
|
8441
|
+
const setDeleteInterval = this.page.locator("select#time-selector-releaseAgeToDeleteFromJcr");
|
|
8442
|
+
await setDeleteInterval.scrollIntoViewIfNeeded();
|
|
8443
|
+
await setDeleteInterval.selectOption(value);
|
|
8444
|
+
return this;
|
|
8445
|
+
}
|
|
8446
|
+
async expectArchivePurgeEnableState(value) {
|
|
8447
|
+
if (value) await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#purgingEnabled")).toBeChecked();
|
|
8448
|
+
else await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#purgingEnabled")).not.toBeChecked();
|
|
8449
|
+
return this;
|
|
8450
|
+
}
|
|
8451
|
+
async setArchivePurgeEnableState(value) {
|
|
8452
|
+
if (value) await this.page.locator("#purgingEnabled").check({
|
|
8453
|
+
force: true
|
|
8454
|
+
});
|
|
8455
|
+
else await this.page.locator("#purgingEnabled").uncheck({
|
|
8456
|
+
force: true
|
|
8457
|
+
});
|
|
8458
|
+
return this;
|
|
8459
|
+
}
|
|
8460
|
+
async expectConfirmEnableArchivePurgeModal() {
|
|
8461
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("heading", {
|
|
8462
|
+
name: "Verify archive purge change"
|
|
8463
|
+
})).toBeVisible();
|
|
8464
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".dot-dialog")).toBeVisible();
|
|
8465
|
+
return this;
|
|
8466
|
+
}
|
|
8467
|
+
async confirmEnableArchivePurgeModal() {
|
|
8468
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("button", {
|
|
8469
|
+
name: "Confirm"
|
|
8470
|
+
})).toBeVisible();
|
|
8471
|
+
await this.page.getByRole("button", {
|
|
8472
|
+
name: "Confirm"
|
|
8473
|
+
}).click();
|
|
8474
|
+
return this;
|
|
8475
|
+
}
|
|
8476
|
+
async cancelEnableArchivePurgeModal() {
|
|
8477
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("button", {
|
|
8478
|
+
name: "Cancel"
|
|
8479
|
+
})).toBeVisible();
|
|
8480
|
+
await this.page.getByRole("button", {
|
|
8481
|
+
name: "Cancel"
|
|
8482
|
+
}).click();
|
|
8483
|
+
return this;
|
|
8484
|
+
}
|
|
8485
|
+
async setMaxArchiveRetentionPeriodIntervalUnit(value) {
|
|
8486
|
+
await this.page.locator("#time-selector-maximumArchiveRetentionPeriod").selectOption(value);
|
|
8487
|
+
return this;
|
|
8488
|
+
}
|
|
8489
|
+
async setMaxArchiveRetentionPeriodInterval(value) {
|
|
8490
|
+
await this.page.getByRole("spinbutton", {
|
|
8491
|
+
name: "Maximum archive retention"
|
|
8492
|
+
}).fill(value);
|
|
8493
|
+
return this;
|
|
8494
|
+
}
|
|
8495
|
+
async expectInputFieldToBeDisabled(fieldName) {
|
|
8496
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("spinbutton", {
|
|
8497
|
+
name: fieldName
|
|
8498
|
+
})).toHaveAttribute("readonly", "");
|
|
8499
|
+
return this;
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
|
|
8503
|
+
|
|
8504
|
+
|
|
8505
|
+
|
|
8506
|
+
|
|
8507
|
+
class $d1277b6afa4c07cc$export$399378eed9c024e7 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8508
|
+
constructor(page){
|
|
8509
|
+
super(page);
|
|
8510
|
+
}
|
|
8511
|
+
async getTasksTableElement() {
|
|
8512
|
+
return this.page.locator(".tasks-table table");
|
|
8513
|
+
}
|
|
8514
|
+
async getTasksTableRows() {
|
|
8515
|
+
return (await this.getTasksTableElement()).locator("tbody tr");
|
|
8516
|
+
}
|
|
8517
|
+
async getEventElement(eventName) {
|
|
8518
|
+
return this.page.locator(`tbody > tr `).filter({
|
|
8519
|
+
hasText: eventName
|
|
8520
|
+
});
|
|
8521
|
+
}
|
|
8522
|
+
async getEventRowElement(eventName) {
|
|
8523
|
+
return (await this.getEventElement(eventName)).locator("td");
|
|
8524
|
+
}
|
|
8525
|
+
async findAddTagInputElementOnRow(eventRowElement) {
|
|
8526
|
+
return eventRowElement.locator("input[type=text].tag-input");
|
|
8527
|
+
}
|
|
8528
|
+
async getTasksEventIdSearchInput() {
|
|
8529
|
+
return (await this.getTasksTableElement()).locator(".with-search > input[type=text]").first();
|
|
8530
|
+
}
|
|
8531
|
+
async getSuggestedRoleElement(roleName) {
|
|
8532
|
+
return this.page.locator(`.xlr-tags-suggestions .tag-label`).filter({
|
|
8533
|
+
hasText: roleName
|
|
8534
|
+
});
|
|
8535
|
+
}
|
|
8536
|
+
async getRoleElementFromEvent(eventName, roleName) {
|
|
8537
|
+
return (await this.getEventRowElement(eventName)).locator(`.role-cell .tag.role`).filter({
|
|
8538
|
+
hasText: roleName
|
|
8539
|
+
});
|
|
8540
|
+
}
|
|
8541
|
+
async getCloseTagElements() {
|
|
8542
|
+
return this.page.locator(".tag.role a.tag-close");
|
|
8543
|
+
}
|
|
8544
|
+
async getEditMessageElements() {
|
|
8545
|
+
return this.page.locator("a.action.link").filter({
|
|
8546
|
+
hasText: "Edit Message"
|
|
8547
|
+
});
|
|
8548
|
+
}
|
|
8549
|
+
async findEditMessageLinkElementOnRow(eventRowElement) {
|
|
8550
|
+
return eventRowElement.locator("a.action.link").filter({
|
|
8551
|
+
hasText: "Edit Message"
|
|
8552
|
+
});
|
|
8553
|
+
}
|
|
8554
|
+
async typeRoleTagNameInEventInput(eventName, roleName) {
|
|
8555
|
+
const eventRowElement = await this.getEventRowElement(eventName);
|
|
8556
|
+
await (await this.findAddTagInputElementOnRow(eventRowElement)).fill(roleName);
|
|
8557
|
+
return this;
|
|
8558
|
+
}
|
|
8559
|
+
async clearRoleTagNameInEventInput(eventName) {
|
|
8560
|
+
const eventRowElement = await this.getEventRowElement(eventName);
|
|
8561
|
+
await (await this.findAddTagInputElementOnRow(eventRowElement)).clear();
|
|
8562
|
+
return this;
|
|
8563
|
+
}
|
|
8564
|
+
async filterTaskTableByEventId(filterText) {
|
|
8565
|
+
await (await this.getTasksEventIdSearchInput()).fill(filterText);
|
|
8566
|
+
return this;
|
|
8567
|
+
}
|
|
8568
|
+
async expectSuggestedRoleToBeVisible(roleName, shouldBeVisible = true) {
|
|
8569
|
+
shouldBeVisible ? (0, $kKeXs$playwrighttest.expect)(await this.getSuggestedRoleElement(roleName)).toBeTruthy() : (0, $kKeXs$playwrighttest.expect)(await this.getSuggestedRoleElement(roleName)).toBeFalsy();
|
|
8570
|
+
return this;
|
|
8571
|
+
}
|
|
8572
|
+
async expectRoleTagToBePresentOnEvent(eventName, roleName, shouldBePresent = true) {
|
|
8573
|
+
shouldBePresent ? await (0, $kKeXs$playwrighttest.expect)(await this.getRoleElementFromEvent(eventName, roleName)).toBeVisible() : await (0, $kKeXs$playwrighttest.expect)(await this.getRoleElementFromEvent(eventName, roleName)).not.toBeVisible();
|
|
8574
|
+
return this;
|
|
8575
|
+
}
|
|
8576
|
+
async expectTaskEventTableToHaveNumberOfRows(numberOfRows) {
|
|
8577
|
+
await (0, $kKeXs$playwrighttest.expect)(await this.getTasksTableRows()).toHaveCount(numberOfRows);
|
|
8578
|
+
return this;
|
|
8579
|
+
}
|
|
8580
|
+
async expectTablesToBeInReadOnlyMode(shouldBeReadOnly = true) {
|
|
8581
|
+
if (shouldBeReadOnly) {
|
|
8582
|
+
await (0, $kKeXs$playwrighttest.expect)(await this.getEditMessageElements()).toHaveCount(0);
|
|
8583
|
+
await (0, $kKeXs$playwrighttest.expect)(await this.getCloseTagElements()).toHaveCount(0);
|
|
8584
|
+
} else {
|
|
8585
|
+
(0, $kKeXs$playwrighttest.expect)(await (await this.getEditMessageElements()).count()).toBeGreaterThan(0);
|
|
8586
|
+
(0, $kKeXs$playwrighttest.expect)(await (await this.getCloseTagElements()).count()).toBeGreaterThan(0);
|
|
8587
|
+
}
|
|
8588
|
+
return this;
|
|
8589
|
+
}
|
|
8590
|
+
async removeRoleTagFromEvent(eventName, roleName) {
|
|
8591
|
+
await this.page.locator(`[data-test="${await this.toConstantFormat(eventName)}"] div .tag.role`).filter({
|
|
8592
|
+
hasText: roleName
|
|
8593
|
+
}).locator("a.tag-close").click();
|
|
8594
|
+
return this;
|
|
8595
|
+
}
|
|
8596
|
+
async toConstantFormat(input) {
|
|
8597
|
+
return input.trim().toUpperCase().replace(/\s+/g, "_");
|
|
8598
|
+
}
|
|
8599
|
+
}
|
|
8600
|
+
class $d1277b6afa4c07cc$export$6c8a73a99892a2a4 extends $d1277b6afa4c07cc$export$399378eed9c024e7 {
|
|
8601
|
+
constructor(page){
|
|
8602
|
+
super(page);
|
|
8603
|
+
}
|
|
8604
|
+
async findBodySaveElement() {
|
|
8605
|
+
return this.page.locator(`.modal-body .actions-wrapper button[data-testid="save-button"]`);
|
|
8606
|
+
}
|
|
8607
|
+
async findBodyCloseElement() {
|
|
8608
|
+
return this.page.locator(`.modal-body .actions-wrapper button[data-testid="cancel-button"]`);
|
|
8609
|
+
}
|
|
8610
|
+
async expectBodyTextareaControlsToExist(shouldExist = true) {
|
|
8611
|
+
if (shouldExist) {
|
|
8612
|
+
(0, $kKeXs$playwrighttest.expect)(await (await this.findBodySaveElement()).count()).toBeGreaterThan(0);
|
|
8613
|
+
(0, $kKeXs$playwrighttest.expect)(await (await this.findBodyCloseElement()).count()).toBeGreaterThan(0);
|
|
8614
|
+
} else {
|
|
8615
|
+
await (0, $kKeXs$playwrighttest.expect)(await this.findBodySaveElement()).toHaveCount(0);
|
|
8616
|
+
await (0, $kKeXs$playwrighttest.expect)(await this.findBodyCloseElement()).toHaveCount(0);
|
|
8617
|
+
}
|
|
8618
|
+
return this;
|
|
8619
|
+
}
|
|
8620
|
+
async getPriorityDropdownElement() {
|
|
8621
|
+
return this.page.locator(".priority-group .xlr-react-select");
|
|
8622
|
+
}
|
|
8623
|
+
async getPriorityDropdownItemElement(priority) {
|
|
8624
|
+
return this.page.locator(`.ant-select-dropdown .ant-select-dropdown-menu-item`).filter({
|
|
8625
|
+
hasText: priority
|
|
8626
|
+
});
|
|
8627
|
+
}
|
|
8628
|
+
async getModalCancelButtonElement() {
|
|
8629
|
+
return this.page.locator(".modal-footer .button.cancel");
|
|
8630
|
+
}
|
|
8631
|
+
async getModalSaveButtonElement() {
|
|
8632
|
+
return this.page.locator(".modal-footer .button.primary");
|
|
8633
|
+
}
|
|
8634
|
+
async setPriority(priority) {
|
|
8635
|
+
await (await this.getPriorityDropdownElement()).click();
|
|
8636
|
+
await (await this.getPriorityDropdownItemElement(priority)).click();
|
|
8637
|
+
return this;
|
|
8638
|
+
}
|
|
8639
|
+
async expectModalSaveButtonToBeEnabled(shouldBeEnabled = true) {
|
|
8640
|
+
if (shouldBeEnabled) await (0, $kKeXs$playwrighttest.expect)(await this.getModalSaveButtonElement()).toBeEnabled();
|
|
8641
|
+
else await (0, $kKeXs$playwrighttest.expect)(await this.getModalSaveButtonElement()).toBeDisabled();
|
|
8642
|
+
return this;
|
|
8643
|
+
}
|
|
8644
|
+
async expectModalCancelButtonToBeEnabled(shouldBeEnabled = true) {
|
|
8645
|
+
if (shouldBeEnabled) await (0, $kKeXs$playwrighttest.expect)(await this.getModalCancelButtonElement()).toBeEnabled();
|
|
8646
|
+
else await (0, $kKeXs$playwrighttest.expect)(await this.getModalCancelButtonElement()).toBeDisabled();
|
|
8647
|
+
return this;
|
|
8648
|
+
}
|
|
8649
|
+
async hasPriority(priority) {
|
|
8650
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".ant-select-selection-selected-value")).toHaveText(priority);
|
|
8651
|
+
return this;
|
|
8652
|
+
}
|
|
8653
|
+
async setSubject(subject) {
|
|
8654
|
+
const subjectElem = this.page.getByRole("textbox");
|
|
8655
|
+
await subjectElem.click();
|
|
8656
|
+
await subjectElem.clear();
|
|
8657
|
+
await subjectElem.fill(subject);
|
|
8658
|
+
return this;
|
|
8659
|
+
}
|
|
8660
|
+
async hasSubject(subject) {
|
|
8661
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`input[name="subject"]`)).toHaveValue(subject);
|
|
8662
|
+
return this;
|
|
8663
|
+
}
|
|
8664
|
+
async writeIntoBodyTextarea(bodyText) {
|
|
8665
|
+
await this.page.getByLabel("Double-click to edit").waitFor({
|
|
8666
|
+
timeout: 10000
|
|
8667
|
+
});
|
|
8668
|
+
await this.page.getByLabel("Double-click to edit").hover();
|
|
8669
|
+
await this.page.locator(".markdown-viewer-actions").getByTestId("edit-button").click();
|
|
8670
|
+
const bodyTextareaElem = this.page.locator(`textarea[id="body-input"]`);
|
|
8671
|
+
await bodyTextareaElem.clear();
|
|
8672
|
+
await bodyTextareaElem.fill(bodyText);
|
|
8673
|
+
return this;
|
|
8674
|
+
}
|
|
8675
|
+
async saveTextInsideOfBodyTextarea() {
|
|
8676
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("save-button")).toBeVisible();
|
|
8677
|
+
await this.page.getByTestId("save-button").click();
|
|
8678
|
+
return this;
|
|
8679
|
+
}
|
|
8680
|
+
async setBody(body) {
|
|
8681
|
+
await this.writeIntoBodyTextarea(body);
|
|
8682
|
+
await this.expectBodyTextareaControlsToExist();
|
|
8683
|
+
await this.saveTextInsideOfBodyTextarea();
|
|
8684
|
+
return this;
|
|
8685
|
+
}
|
|
8686
|
+
async hasBody(body) {
|
|
8687
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".markdown-wrapper")).toContainText(body);
|
|
8688
|
+
return this;
|
|
8689
|
+
}
|
|
8690
|
+
async save() {
|
|
8691
|
+
await (await this.getModalSaveButtonElement()).click();
|
|
8692
|
+
return this;
|
|
8693
|
+
}
|
|
8694
|
+
async cancel() {
|
|
8695
|
+
await (await this.getModalCancelButtonElement()).click();
|
|
8696
|
+
return this;
|
|
8697
|
+
}
|
|
8698
|
+
async confirmLeave() {
|
|
8699
|
+
await this.page.locator(".leave-confirmation-dialog").getByRole("button", {
|
|
8700
|
+
name: "Leave"
|
|
8701
|
+
}).click();
|
|
8702
|
+
return this;
|
|
8703
|
+
}
|
|
8704
|
+
async expectNotificationSettingsModalToBeVisible(shouldBeVisible = true) {
|
|
8705
|
+
const modal = this.page.locator(`[role='dialog'] .xl-react-widget-modal-dialog`);
|
|
8706
|
+
if (shouldBeVisible) await (0, $kKeXs$playwrighttest.expect)(modal).toBeVisible();
|
|
8707
|
+
else await (0, $kKeXs$playwrighttest.expect)(modal).toHaveCount(0);
|
|
8708
|
+
return this;
|
|
8709
|
+
}
|
|
8710
|
+
async expectModalControlButtonsToBeEnabled(shouldBeEnabled = true) {
|
|
8711
|
+
await this.expectModalSaveButtonToBeEnabled(shouldBeEnabled);
|
|
8712
|
+
await this.expectModalCancelButtonToBeEnabled(shouldBeEnabled);
|
|
8713
|
+
return this;
|
|
8714
|
+
}
|
|
8715
|
+
async changeEmailDataWithAssertion(priority, subject, body) {
|
|
8716
|
+
await this.expectBodyTextareaControlsToExist(false);
|
|
8717
|
+
await this.setPriority(priority);
|
|
8718
|
+
await this.expectModalCancelButtonToBeEnabled();
|
|
8719
|
+
await this.hasPriority(priority);
|
|
8720
|
+
await this.expectModalCancelButtonToBeEnabled();
|
|
8721
|
+
await this.setSubject(subject);
|
|
8722
|
+
await this.expectModalCancelButtonToBeEnabled();
|
|
8723
|
+
await this.hasSubject(subject);
|
|
8724
|
+
await this.setBody(body);
|
|
8725
|
+
await this.expectModalCancelButtonToBeEnabled();
|
|
8726
|
+
await this.hasBody(body);
|
|
8727
|
+
await this.expectModalControlButtonsToBeEnabled();
|
|
8728
|
+
return this;
|
|
8729
|
+
}
|
|
8730
|
+
async changeEmailDataSaveChangesAndAssert(priority, subject, body) {
|
|
8731
|
+
await this.changeEmailDataWithAssertion(priority, subject, body);
|
|
8732
|
+
await this.save();
|
|
8733
|
+
await this.expectNotificationSettingsModalToBeVisible(false);
|
|
8734
|
+
return this;
|
|
8735
|
+
}
|
|
8736
|
+
async changeEmailDataCancelChangesAndAssert(priority, subject, body) {
|
|
8737
|
+
await this.changeEmailDataWithAssertion(priority, subject, body);
|
|
8738
|
+
await this.cancel();
|
|
8739
|
+
await this.expectLeaveConfirmationModalToBeVisible();
|
|
8740
|
+
await this.confirmLeave();
|
|
8741
|
+
return this;
|
|
8742
|
+
}
|
|
8743
|
+
async expectLeaveConfirmationModalToBeVisible(shouldBeVisible = true) {
|
|
8744
|
+
shouldBeVisible ? await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".leave-confirmation-dialog")).toBeVisible() : await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".leave-confirmation-dialog")).toHaveCount(0);
|
|
8745
|
+
return this;
|
|
8746
|
+
}
|
|
8747
|
+
async openModalAndExpectData(priority, subject, body) {
|
|
8748
|
+
await this.hasPriority(priority);
|
|
8749
|
+
await this.hasSubject(subject);
|
|
8750
|
+
await this.hasBody(body);
|
|
8751
|
+
return this;
|
|
8752
|
+
}
|
|
8753
|
+
}
|
|
8754
|
+
|
|
8755
|
+
|
|
8756
|
+
class $5009000f2e5d0829$export$7a236355ab05cdda extends (0, $d1277b6afa4c07cc$export$399378eed9c024e7) {
|
|
8757
|
+
constructor(page){
|
|
8758
|
+
super(page);
|
|
8759
|
+
}
|
|
8760
|
+
async getResetButtonElement() {
|
|
8761
|
+
return this.page.getByTestId("reset-btn");
|
|
8762
|
+
}
|
|
8763
|
+
async getSaveButtonElement() {
|
|
8764
|
+
return this.page.getByTestId("save-btn");
|
|
8765
|
+
}
|
|
8766
|
+
async getSuggestionTag() {
|
|
8767
|
+
return this.page.locator(".xlr-tags-suggestions .tag-label");
|
|
8768
|
+
}
|
|
8769
|
+
async getSuggestedRoleElement(roleName) {
|
|
8770
|
+
return this.page.locator(`.xlr-tags-suggestions .tag-label`).filter({
|
|
8771
|
+
hasText: roleName
|
|
8772
|
+
});
|
|
8773
|
+
}
|
|
8774
|
+
async selectSuggestedRole(roleName) {
|
|
8775
|
+
await (await this.getSuggestedRoleElement(roleName)).click();
|
|
8776
|
+
return this;
|
|
8777
|
+
}
|
|
8778
|
+
async getEventElement(eventName) {
|
|
8779
|
+
return this.page.locator(`tbody > tr `).filter({
|
|
8780
|
+
hasText: eventName
|
|
8781
|
+
});
|
|
8782
|
+
}
|
|
8783
|
+
async getEventRowElement(eventName) {
|
|
8784
|
+
return (await this.getEventElement(eventName)).locator("td");
|
|
8785
|
+
}
|
|
8786
|
+
async getRoleElementFromEvent(eventName, roleName) {
|
|
8787
|
+
return (await this.getEventRowElement(eventName)).locator(`.role-cell .tag.role span`).filter({
|
|
8788
|
+
hasText: roleName
|
|
8789
|
+
});
|
|
8790
|
+
}
|
|
8791
|
+
async expectResetButtonToBeEnabled(shouldBeEnabled = true) {
|
|
8792
|
+
shouldBeEnabled ? await (0, $kKeXs$playwrighttest.expect)(await this.getResetButtonElement()).toBeEnabled() : await (0, $kKeXs$playwrighttest.expect)(await this.getResetButtonElement()).toBeDisabled();
|
|
8793
|
+
return this;
|
|
8794
|
+
}
|
|
8795
|
+
async expectSaveButtonToBeEnabled(shouldBeEnabled = true) {
|
|
8796
|
+
shouldBeEnabled ? await (0, $kKeXs$playwrighttest.expect)(await this.getSaveButtonElement()).toBeEnabled() : await (0, $kKeXs$playwrighttest.expect)(await this.getSaveButtonElement()).toBeDisabled();
|
|
8797
|
+
return this;
|
|
8798
|
+
}
|
|
8799
|
+
async expectTableWithRecipients(tableTitle, recipientEnabled) {
|
|
8800
|
+
const countElement = this.page.locator(`.collapsible-component`).filter({
|
|
8801
|
+
hasText: tableTitle
|
|
8802
|
+
}).locator(`.tags.react-tags-wrapper`);
|
|
8803
|
+
recipientEnabled ? (0, $kKeXs$playwrighttest.expect)(await countElement.count()).toBeGreaterThan(0) : (0, $kKeXs$playwrighttest.expect)(await countElement.count()).toBe(0);
|
|
8804
|
+
return this;
|
|
8805
|
+
}
|
|
8806
|
+
async typeRoleText(eventId, roleText) {
|
|
8807
|
+
await this.page.locator(`.events-permissions-table input#${eventId}`).fill(roleText);
|
|
8808
|
+
return this;
|
|
8809
|
+
}
|
|
8810
|
+
async addRoleToEvent(eventId, roleName) {
|
|
8811
|
+
await this.typeRoleText(eventId, roleName);
|
|
8812
|
+
await this.selectSuggestedRole(roleName);
|
|
8813
|
+
return this;
|
|
8814
|
+
}
|
|
8815
|
+
async removeRoleFromEvent(eventId, roleName) {
|
|
8816
|
+
const roleElem = await this.getRoleElementFromEvent(roleName, eventId);
|
|
8817
|
+
await roleElem.locator(".role .tag-close").click();
|
|
8818
|
+
return this;
|
|
8819
|
+
}
|
|
8820
|
+
async expectSuggestionTagToHaveText(expectedText) {
|
|
8821
|
+
await (0, $kKeXs$playwrighttest.expect)(await this.getSuggestionTag()).toHaveText(expectedText);
|
|
8822
|
+
return this;
|
|
8823
|
+
}
|
|
8824
|
+
async expectCancelAndSaveButtonsToBeEnabled(shouldBeEnabled = true) {
|
|
8825
|
+
shouldBeEnabled ? await (0, $kKeXs$playwrighttest.expect)(await this.getResetButtonElement()).toBeEnabled() : await (0, $kKeXs$playwrighttest.expect)(await this.getSaveButtonElement()).toBeDisabled();
|
|
8826
|
+
return this;
|
|
8827
|
+
}
|
|
8828
|
+
async addRoleToEventWithAssertions(eventName, roleName) {
|
|
8829
|
+
await this.typeRoleTagNameInEventInput(eventName, roleName);
|
|
8830
|
+
await this.expectSuggestedRoleToBeVisible(roleName);
|
|
8831
|
+
await this.selectSuggestedRole(roleName);
|
|
8832
|
+
await this.expectRoleTagToBePresentOnEvent(eventName, roleName);
|
|
8833
|
+
await this.expectCancelAndSaveButtonsToBeEnabled();
|
|
8834
|
+
return this;
|
|
8835
|
+
}
|
|
8836
|
+
async removeRoleAndAssert(eventName, roleName) {
|
|
8837
|
+
await this.expectTablesToBeInReadOnlyMode(false);
|
|
8838
|
+
await this.removeRoleTagFromEvent(eventName, roleName);
|
|
8839
|
+
await this.expectRoleTagToBePresentOnEvent(eventName, roleName, false);
|
|
8840
|
+
await this.expectCancelAndSaveButtonsToBeEnabled();
|
|
8841
|
+
return this;
|
|
8842
|
+
}
|
|
8843
|
+
async openEditMessageFromEvent(eventName) {
|
|
8844
|
+
await this.page.locator(`[data-test="${await this.toConstantFormat(eventName)}"]`).getByText("Edit Message").click();
|
|
8845
|
+
return new (0, $d1277b6afa4c07cc$export$6c8a73a99892a2a4)(this.page);
|
|
8846
|
+
}
|
|
8847
|
+
}
|
|
8848
|
+
|
|
8849
|
+
|
|
8384
8850
|
class $dbc8f157e7b24b12$export$2edf430132ca35d0 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
8385
8851
|
constructor(page){
|
|
8386
8852
|
super(page);
|
|
@@ -8390,18 +8856,22 @@ class $dbc8f157e7b24b12$export$2edf430132ca35d0 extends (0, $f8721861c660dd88$ex
|
|
|
8390
8856
|
async openGeneralSettings() {
|
|
8391
8857
|
await this.util.openSideNavMenu("General");
|
|
8392
8858
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("General")).toBeVisible();
|
|
8859
|
+
return new $dbc8f157e7b24b12$export$b8732a8d21d8bf63(this.page);
|
|
8393
8860
|
}
|
|
8394
8861
|
async openReleasesAndTriggers() {
|
|
8395
8862
|
await this.util.openSideNavMenu("Releases and Triggers");
|
|
8396
8863
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("Releases and Triggers")).toBeVisible();
|
|
8864
|
+
return new (0, $346eca383b14ff13$export$3966fb3c0478db68)(this.page);
|
|
8397
8865
|
}
|
|
8398
8866
|
async openTasks() {
|
|
8399
8867
|
await this.util.openSideNavMenu("Tasks");
|
|
8400
8868
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("Tasks")).toBeVisible();
|
|
8869
|
+
return new (0, $867b32e9296b4f52$export$c33e44a4a9202d88)(this.page);
|
|
8401
8870
|
}
|
|
8402
8871
|
async openReports() {
|
|
8403
8872
|
await this.util.openSideNavMenu("Reports");
|
|
8404
8873
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("Reports")).toBeVisible();
|
|
8874
|
+
return new (0, $249973ff3670aa42$export$5c92082c2afdcc2c)(this.page);
|
|
8405
8875
|
}
|
|
8406
8876
|
async openAdvanced() {
|
|
8407
8877
|
await this.util.openSideNavMenu("Advanced");
|
|
@@ -8416,6 +8886,7 @@ class $dbc8f157e7b24b12$export$2edf430132ca35d0 extends (0, $f8721861c660dd88$ex
|
|
|
8416
8886
|
async openNotifications() {
|
|
8417
8887
|
await this.util.openSideNavMenu("Notifications");
|
|
8418
8888
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("Notifications")).toBeVisible();
|
|
8889
|
+
return new (0, $5009000f2e5d0829$export$7a236355ab05cdda)(this.page);
|
|
8419
8890
|
}
|
|
8420
8891
|
async openRiskProfiles() {
|
|
8421
8892
|
await this.util.openSideNavMenu("Risk profiles");
|
|
@@ -8430,6 +8901,90 @@ class $dbc8f157e7b24b12$export$2edf430132ca35d0 extends (0, $f8721861c660dd88$ex
|
|
|
8430
8901
|
await this.util.openSideNavMenu("SMTP server");
|
|
8431
8902
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("SMTP server")).toBeVisible();
|
|
8432
8903
|
}
|
|
8904
|
+
async _saveDoNotAssert() {
|
|
8905
|
+
// Check if the "Save" button is enabled and save if needed
|
|
8906
|
+
const saveButton = await this.page.getByTestId("save-button").isDisabled();
|
|
8907
|
+
if (!saveButton) await this.page.getByTestId("save-button").click();
|
|
8908
|
+
}
|
|
8909
|
+
async expectCards(cardTitles) {
|
|
8910
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.settings-card .dot-card-header-title`)).toHaveCount(cardTitles.length);
|
|
8911
|
+
for(let i = 0; i < cardTitles.length; i++){
|
|
8912
|
+
const cardTitle = cardTitles[i];
|
|
8913
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.settings-card .dot-card-header-title`).filter({
|
|
8914
|
+
hasText: cardTitle
|
|
8915
|
+
})).toBeVisible();
|
|
8916
|
+
}
|
|
8917
|
+
return this;
|
|
8918
|
+
}
|
|
8919
|
+
async save() {
|
|
8920
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("save-button")).toBeVisible();
|
|
8921
|
+
await this.page.getByTestId("save-button").click();
|
|
8922
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".success").filter({
|
|
8923
|
+
hasText: "Changes saved successfully"
|
|
8924
|
+
})).toBeVisible();
|
|
8925
|
+
await this.page.locator(".success").getByRole("button").click();
|
|
8926
|
+
return this;
|
|
8927
|
+
}
|
|
8928
|
+
async reset() {
|
|
8929
|
+
await this.page.getByTestId(`reset-button`).click();
|
|
8930
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("reset-button")).toBeDisabled();
|
|
8931
|
+
return this;
|
|
8932
|
+
}
|
|
8933
|
+
}
|
|
8934
|
+
class $dbc8f157e7b24b12$export$b8732a8d21d8bf63 extends $dbc8f157e7b24b12$export$2edf430132ca35d0 {
|
|
8935
|
+
constructor(page){
|
|
8936
|
+
super(page);
|
|
8937
|
+
}
|
|
8938
|
+
async setInstanceName(value) {
|
|
8939
|
+
await this.page.locator("input#headerName").click({
|
|
8940
|
+
force: true
|
|
8941
|
+
});
|
|
8942
|
+
await this.page.getByRole("textbox", {
|
|
8943
|
+
name: "Instance name"
|
|
8944
|
+
}).fill(value);
|
|
8945
|
+
return this;
|
|
8946
|
+
}
|
|
8947
|
+
async setHeaderColor(colorName) {
|
|
8948
|
+
await this.page.locator(".color-picker button").click({
|
|
8949
|
+
force: true
|
|
8950
|
+
});
|
|
8951
|
+
await this.page.locator(`.color-picker-list-item`).getByText(colorName).click({
|
|
8952
|
+
force: true
|
|
8953
|
+
});
|
|
8954
|
+
return this;
|
|
8955
|
+
}
|
|
8956
|
+
async clickNotificationsMenu() {
|
|
8957
|
+
await this.util.openSideNavMenu("Notifications");
|
|
8958
|
+
}
|
|
8959
|
+
async expectInstanceName(value) {
|
|
8960
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("top-toolbar .dot-pill")).toHaveText(value);
|
|
8961
|
+
return this;
|
|
8962
|
+
}
|
|
8963
|
+
async restoreDefaultThemeSettings() {
|
|
8964
|
+
await this._clearHeaderInstanceName();
|
|
8965
|
+
await this.setHeaderColor("Green");
|
|
8966
|
+
await this._saveDoNotAssert();
|
|
8967
|
+
}
|
|
8968
|
+
async _clearHeaderInstanceName() {
|
|
8969
|
+
await this.page.locator("input#headerName").click({
|
|
8970
|
+
force: true
|
|
8971
|
+
});
|
|
8972
|
+
await this.page.locator("input#headerName").clear();
|
|
8973
|
+
}
|
|
8974
|
+
async expectHeaderColor(value) {
|
|
8975
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("top-toolbar .dot-app-toolbar")).toHaveAttribute("style", `border-bottom-color: ${value};`);
|
|
8976
|
+
return this;
|
|
8977
|
+
}
|
|
8978
|
+
async expectConfirmationPopUp() {
|
|
8979
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("heading", {
|
|
8980
|
+
name: "Confirm leave"
|
|
8981
|
+
})).toBeVisible();
|
|
8982
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("paragraph")).toContainText("You have unsaved changes that will be lost.");
|
|
8983
|
+
await this.page.getByRole("button", {
|
|
8984
|
+
name: "Leave without saving"
|
|
8985
|
+
}).click();
|
|
8986
|
+
return this;
|
|
8987
|
+
}
|
|
8433
8988
|
}
|
|
8434
8989
|
|
|
8435
8990
|
|
|
@@ -8575,6 +9130,11 @@ class $3ec0e9cf832fdde8$var$ConfigurationInstancePage extends (0, $f8721861c660d
|
|
|
8575
9130
|
await this.page.getByLabel(fieldName).click();
|
|
8576
9131
|
return this;
|
|
8577
9132
|
}
|
|
9133
|
+
async expectTextFieldNotToExist(fieldName) {
|
|
9134
|
+
const locator = this.page.locator(`.input-scalar[data-test-id="${fieldName}"]`);
|
|
9135
|
+
await (0, $kKeXs$playwrighttest.expect)(locator).toHaveCount(0);
|
|
9136
|
+
return this;
|
|
9137
|
+
}
|
|
8578
9138
|
// To avoid flakiness and clicking around the page, we can directly click on the header
|
|
8579
9139
|
async clickHeader() {
|
|
8580
9140
|
await this.page.locator(".configuration-instance-page h2").click();
|