@digital-ai/devops-page-object-release 1.0.3 → 1.0.4
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 +9 -0
- package/dist/main.js +24 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +24 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -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'
|