@digital-ai/devops-page-object-release 1.0.3 → 1.0.5
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 +15 -0
- package/dist/main.js +51 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +51 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +6 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -3422,7 +3422,7 @@ class $19b7e7e46cfe3be0$export$649fde34d823ece7 extends (0, $9626bc9256ce31f7$ex
|
|
|
3422
3422
|
await this.closeContextMenu();
|
|
3423
3423
|
}
|
|
3424
3424
|
async closeContextMenu() {
|
|
3425
|
-
await this.page.locator('
|
|
3425
|
+
await this.page.locator('.release-sidebar-header h1').click();
|
|
3426
3426
|
}
|
|
3427
3427
|
async expectDisabledActions(actionName) {
|
|
3428
3428
|
await (0, $hOLA6$expect)(this.page.getByTestId(`release-grid-${actionName}-btn`)).toBeDisabled();
|
|
@@ -3896,8 +3896,8 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
|
|
|
3896
3896
|
})).toBeVisible();
|
|
3897
3897
|
return this;
|
|
3898
3898
|
}
|
|
3899
|
-
async
|
|
3900
|
-
await (0, $hOLA6$expect)(this.page.locator('.
|
|
3899
|
+
async expectTitleInSidebar(title) {
|
|
3900
|
+
await (0, $hOLA6$expect)(this.page.locator('.release-sidebar-header h1', {
|
|
3901
3901
|
hasText: title
|
|
3902
3902
|
})).toBeVisible();
|
|
3903
3903
|
}
|
|
@@ -5572,6 +5572,15 @@ class $2174535b78371022$export$36d69433c4f81145 extends (0, $9626bc9256ce31f7$ex
|
|
|
5572
5572
|
await (0, $hOLA6$expect)(this.viewModeButton).toBeVisible();
|
|
5573
5573
|
await this.viewModeButton.click();
|
|
5574
5574
|
}
|
|
5575
|
+
async verifyDefaultTilesPresent(expectedTileNames) {
|
|
5576
|
+
const homeTiles = this.page.locator('.xlr-tile-container[data-title]');
|
|
5577
|
+
await (0, $hOLA6$expect)(homeTiles).toHaveCount(expectedTileNames.length);
|
|
5578
|
+
for (const tileName of expectedTileNames){
|
|
5579
|
+
const tile = this.page.locator(`.xlr-tile-container[data-title="${tileName}"]`);
|
|
5580
|
+
await (0, $hOLA6$expect)(tile).toHaveCount(1);
|
|
5581
|
+
await (0, $hOLA6$expect)(tile).toBeVisible();
|
|
5582
|
+
}
|
|
5583
|
+
}
|
|
5575
5584
|
async addReleaseTiles() {
|
|
5576
5585
|
await this.configureButton.click();
|
|
5577
5586
|
await this.page.getByRole('button', {
|
|
@@ -5919,6 +5928,18 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
5919
5928
|
await (0, $hOLA6$expect)(this.page.locator('input[name="firstDayOfWeek"]')).toHaveValue(firstDayOfWeek);
|
|
5920
5929
|
return this;
|
|
5921
5930
|
}
|
|
5931
|
+
async setTimezone(timezone) {
|
|
5932
|
+
await this.page.locator('input[name="Timezone"]').fill(timezone);
|
|
5933
|
+
await this.page.locator('.dot-popper', {
|
|
5934
|
+
hasText: timezone
|
|
5935
|
+
}).click();
|
|
5936
|
+
return this;
|
|
5937
|
+
}
|
|
5938
|
+
async expectTimezonePillToContain(text, contain = true) {
|
|
5939
|
+
if (contain) await (0, $hOLA6$expect)(this.page.locator('action-toolbar .dot-pill')).toContainText(text);
|
|
5940
|
+
else await (0, $hOLA6$expect)(this.page.locator('action-toolbar .dot-pill')).not.toContainText(text);
|
|
5941
|
+
return this;
|
|
5942
|
+
}
|
|
5922
5943
|
async clickOnSaveButton() {
|
|
5923
5944
|
await this.page.getByRole('button', {
|
|
5924
5945
|
name: 'Save'
|
|
@@ -9235,11 +9256,27 @@ class $6c0f5b52769b32c3$export$9823ddf5e80770e7 extends (0, $9626bc9256ce31f7$ex
|
|
|
9235
9256
|
return new $6c0f5b52769b32c3$var$ConfigurationInstancePage(this.page);
|
|
9236
9257
|
}
|
|
9237
9258
|
async deleteInstance(instanceName) {
|
|
9238
|
-
await this.page.locator(
|
|
9259
|
+
await this.page.locator('.configuration-instance').filter({
|
|
9239
9260
|
hasText: instanceName
|
|
9240
|
-
}).locator(
|
|
9241
|
-
|
|
9261
|
+
}).locator('.delete-instance').click();
|
|
9262
|
+
return this;
|
|
9263
|
+
}
|
|
9264
|
+
async expectDeleteDialog(dialogName) {
|
|
9265
|
+
const dialog = this.page.getByRole('dialog', {
|
|
9266
|
+
name: dialogName
|
|
9267
|
+
});
|
|
9268
|
+
await (0, $hOLA6$expect)(dialog).toBeVisible();
|
|
9269
|
+
return this;
|
|
9270
|
+
}
|
|
9271
|
+
async deleteInstanceViaDialog(dialogName) {
|
|
9272
|
+
const dialog = this.page.getByRole('dialog', {
|
|
9273
|
+
name: dialogName
|
|
9242
9274
|
});
|
|
9275
|
+
const deleteButton = dialog.getByRole('button', {
|
|
9276
|
+
name: 'Delete'
|
|
9277
|
+
});
|
|
9278
|
+
await deleteButton.click();
|
|
9279
|
+
await (0, $hOLA6$expect)(dialog).toBeHidden();
|
|
9243
9280
|
return this;
|
|
9244
9281
|
}
|
|
9245
9282
|
async expectSuccessMsgToBeDisplayed(text) {
|
|
@@ -9256,8 +9293,14 @@ class $6c0f5b52769b32c3$export$9823ddf5e80770e7 extends (0, $9626bc9256ce31f7$ex
|
|
|
9256
9293
|
return this;
|
|
9257
9294
|
}
|
|
9258
9295
|
async expectErrorDisplayed() {
|
|
9259
|
-
|
|
9260
|
-
|
|
9296
|
+
const dialog = this.page.getByRole('dialog', {
|
|
9297
|
+
name: /delete connection/i
|
|
9298
|
+
});
|
|
9299
|
+
await (0, $hOLA6$expect)(dialog).toBeVisible();
|
|
9300
|
+
await (0, $hOLA6$expect)(dialog).toContainText('is still in use and cannot be delete');
|
|
9301
|
+
await dialog.getByRole('button', {
|
|
9302
|
+
name: 'Cancel'
|
|
9303
|
+
}).click();
|
|
9261
9304
|
}
|
|
9262
9305
|
}
|
|
9263
9306
|
class $6c0f5b52769b32c3$var$ConfigurationInstancePage extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|