@digital-ai/devops-page-object-release 1.0.9 → 1.0.11
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 +13 -0
- package/dist/main.js +128 -9
- package/dist/main.js.map +1 -1
- package/dist/module.js +128 -9
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +26 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -409,6 +409,60 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $b34a21212642e54d$ex
|
|
|
409
409
|
await this.page.locator('.modal-footer .primary').click();
|
|
410
410
|
return this;
|
|
411
411
|
}
|
|
412
|
+
// Archive on Demand: bulk archive toolbar button
|
|
413
|
+
bulkActionButton(buttonText) {
|
|
414
|
+
return this.page.locator('action-toolbar button').filter({
|
|
415
|
+
hasText: buttonText
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
async expectBulkActionButtonEnabled(buttonText, enabled = true) {
|
|
419
|
+
const button = this.bulkActionButton(buttonText);
|
|
420
|
+
await (0, $hOLA6$expect)(button).toBeVisible();
|
|
421
|
+
if (enabled) await (0, $hOLA6$expect)(button).toBeEnabled();
|
|
422
|
+
else await (0, $hOLA6$expect)(button).toBeDisabled();
|
|
423
|
+
return this;
|
|
424
|
+
}
|
|
425
|
+
async expectBulkActionButtonHidden(buttonText) {
|
|
426
|
+
await (0, $hOLA6$expect)(this.bulkActionButton(buttonText)).toHaveCount(0);
|
|
427
|
+
return this;
|
|
428
|
+
}
|
|
429
|
+
// Archive on Demand: single archive action in the release overflow (three-dot) menu
|
|
430
|
+
async clickArchiveOption(releaseTitle) {
|
|
431
|
+
await this.clickReleaseOptions(releaseTitle);
|
|
432
|
+
await this.page.locator('#context-menu-container a', {
|
|
433
|
+
hasText: 'Archive release'
|
|
434
|
+
}).click({
|
|
435
|
+
force: true
|
|
436
|
+
});
|
|
437
|
+
return this;
|
|
438
|
+
}
|
|
439
|
+
async expectArchiveOptionHidden(releaseTitle) {
|
|
440
|
+
await this.clickReleaseOptions(releaseTitle);
|
|
441
|
+
await (0, $hOLA6$expect)(this.page.locator('#context-menu-container a').filter({
|
|
442
|
+
hasText: 'Archive release'
|
|
443
|
+
})).toHaveCount(0);
|
|
444
|
+
return this;
|
|
445
|
+
}
|
|
446
|
+
// Archive on Demand: confirmation dialog shown before the archive request is sent
|
|
447
|
+
async expectArchiveConfirmationDialog(title, message) {
|
|
448
|
+
const dialog = this.page.locator('.MuiDialog-root');
|
|
449
|
+
await (0, $hOLA6$expect)(dialog).toBeVisible();
|
|
450
|
+
await (0, $hOLA6$expect)(dialog).toContainText(title);
|
|
451
|
+
await (0, $hOLA6$expect)(dialog).toContainText(message);
|
|
452
|
+
return this;
|
|
453
|
+
}
|
|
454
|
+
async confirmArchiveDialog() {
|
|
455
|
+
await this.page.locator('.MuiDialog-root button', {
|
|
456
|
+
hasText: 'Archive'
|
|
457
|
+
}).last().click({
|
|
458
|
+
force: true
|
|
459
|
+
});
|
|
460
|
+
return this;
|
|
461
|
+
}
|
|
462
|
+
async expectSnackbarToContain(text) {
|
|
463
|
+
await (0, $hOLA6$expect)(this.page.locator('.dot-snackbar')).toContainText(text);
|
|
464
|
+
return this;
|
|
465
|
+
}
|
|
412
466
|
}
|
|
413
467
|
|
|
414
468
|
|
|
@@ -3124,6 +3178,50 @@ class $c9bb587dd92143c3$export$d1077068a9cc9f17 extends (0, $9626bc9256ce31f7$ex
|
|
|
3124
3178
|
await this.page.getByPlaceholder('Set status text...').click();
|
|
3125
3179
|
await this.page.getByPlaceholder('Set status text...').fill(flagComment);
|
|
3126
3180
|
}
|
|
3181
|
+
// Archive on Demand: "Archive Release After (hours)" field
|
|
3182
|
+
archiveAfterHoursField() {
|
|
3183
|
+
return this.page.locator('#release-form-archive-after-hours');
|
|
3184
|
+
}
|
|
3185
|
+
async expectArchiveAfterFieldVisible() {
|
|
3186
|
+
await (0, $hOLA6$expect)(this.archiveAfterHoursField()).toBeVisible();
|
|
3187
|
+
return this;
|
|
3188
|
+
}
|
|
3189
|
+
async expectArchiveAfterFieldEnabled(enabled = true) {
|
|
3190
|
+
if (enabled) await (0, $hOLA6$expect)(this.archiveAfterHoursField()).toBeEnabled();
|
|
3191
|
+
else await (0, $hOLA6$expect)(this.archiveAfterHoursField()).toBeDisabled();
|
|
3192
|
+
return this;
|
|
3193
|
+
}
|
|
3194
|
+
async expectArchiveAfterPlaceholderToMatch(pattern) {
|
|
3195
|
+
await (0, $hOLA6$expect).poll(async ()=>this.archiveAfterHoursField().getAttribute('placeholder')).toMatch(pattern);
|
|
3196
|
+
return this;
|
|
3197
|
+
}
|
|
3198
|
+
async expectArchiveAfterMinToBe(min) {
|
|
3199
|
+
await (0, $hOLA6$expect)(this.archiveAfterHoursField()).toHaveAttribute('min', min);
|
|
3200
|
+
return this;
|
|
3201
|
+
}
|
|
3202
|
+
// The hint is only shown in the info-icon tooltip, never as a help block below the field.
|
|
3203
|
+
async expectNoArchiveAfterHelpBlock() {
|
|
3204
|
+
await (0, $hOLA6$expect)(this.page.locator('.help-block').filter({
|
|
3205
|
+
hasText: 'archive'
|
|
3206
|
+
})).toHaveCount(0);
|
|
3207
|
+
return this;
|
|
3208
|
+
}
|
|
3209
|
+
async expectArchiveAfterTooltipToContain(text) {
|
|
3210
|
+
await (0, $hOLA6$expect)(this.page.locator('label[for="release-form-archive-after-hours"] .info-icon')).toHaveAttribute('uib-tooltip', new RegExp(text));
|
|
3211
|
+
return this;
|
|
3212
|
+
}
|
|
3213
|
+
async setArchiveAfterHours(hours) {
|
|
3214
|
+
const field = this.archiveAfterHoursField();
|
|
3215
|
+
await field.click();
|
|
3216
|
+
await field.fill('');
|
|
3217
|
+
await field.fill(`${hours}`);
|
|
3218
|
+
await field.blur();
|
|
3219
|
+
return this;
|
|
3220
|
+
}
|
|
3221
|
+
async expectArchiveAfterHoursToBe(hours) {
|
|
3222
|
+
await (0, $hOLA6$expect)(this.archiveAfterHoursField()).toHaveValue(`${hours}`);
|
|
3223
|
+
return this;
|
|
3224
|
+
}
|
|
3127
3225
|
}
|
|
3128
3226
|
|
|
3129
3227
|
|
|
@@ -6969,7 +7067,30 @@ class $cc231ea61b77c7a2$export$1a0994e9c202d529 extends (0, $9626bc9256ce31f7$ex
|
|
|
6969
7067
|
|
|
6970
7068
|
|
|
6971
7069
|
|
|
6972
|
-
|
|
7070
|
+
|
|
7071
|
+
|
|
7072
|
+
class $7de643aea2396373$export$3a6aeb461146cd7c extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
7073
|
+
constructor(page){
|
|
7074
|
+
super(page);
|
|
7075
|
+
}
|
|
7076
|
+
getVariableSearchInputSelector() {
|
|
7077
|
+
return '.variables-search-filter input#variables-filter';
|
|
7078
|
+
}
|
|
7079
|
+
async expectVariablesCountToBe(count) {
|
|
7080
|
+
await (0, $hOLA6$expect)(this.page.locator('.variable .data-row')).toHaveCount(count);
|
|
7081
|
+
}
|
|
7082
|
+
async expectFirstVariableWithName(name) {
|
|
7083
|
+
await (0, $hOLA6$expect)(this.page.locator('.variable .data-row').first()).toContainText(name);
|
|
7084
|
+
}
|
|
7085
|
+
async searchForVariable(variableName) {
|
|
7086
|
+
await this.page.locator(this.getVariableSearchInputSelector()).fill(variableName);
|
|
7087
|
+
await this.expectVariablesCountToBe(1);
|
|
7088
|
+
await this.expectFirstVariableWithName(variableName);
|
|
7089
|
+
}
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
|
|
7093
|
+
class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $7de643aea2396373$export$3a6aeb461146cd7c) {
|
|
6973
7094
|
constructor(page){
|
|
6974
7095
|
super(page);
|
|
6975
7096
|
this.addListValue = this.page.locator('.variable-selector .xl-components-input-full input');
|
|
@@ -7115,25 +7236,22 @@ class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $9626bc9256ce31f7$ex
|
|
|
7115
7236
|
(0, $hOLA6$expect)(rowLocator.toString()).toContain(type);
|
|
7116
7237
|
}
|
|
7117
7238
|
async clickEditVariable(variableName) {
|
|
7118
|
-
await this.
|
|
7239
|
+
await this.searchForVariable(variableName);
|
|
7119
7240
|
await this.page.getByText('Edit').first().click();
|
|
7120
7241
|
return new $f48771b486a3eb8f$var$ReleaseVariableModal(this.page);
|
|
7121
7242
|
}
|
|
7122
7243
|
async clickDeleteVariable(variableName) {
|
|
7123
|
-
await this.
|
|
7244
|
+
await this.searchForVariable(variableName);
|
|
7124
7245
|
await this.page.locator('.action .delete-icon').first().click();
|
|
7125
7246
|
return new $f48771b486a3eb8f$var$DeleteVariableModel(this.page);
|
|
7126
7247
|
}
|
|
7127
|
-
async expectVariablesCountToBe(count) {
|
|
7128
|
-
await (0, $hOLA6$expect)(this.page.locator('.variable .data-row')).toHaveCount(count);
|
|
7129
|
-
}
|
|
7130
7248
|
async expectVariableNotPresent(variableName) {
|
|
7131
7249
|
await (0, $hOLA6$expect)(this.page.locator('.variable').filter({
|
|
7132
7250
|
hasText: variableName
|
|
7133
7251
|
})).not.toBeVisible();
|
|
7134
7252
|
}
|
|
7135
7253
|
async clearSearch() {
|
|
7136
|
-
await this.page.locator(
|
|
7254
|
+
await this.page.locator('.variables-search-filter button.clear-icon-button').click();
|
|
7137
7255
|
}
|
|
7138
7256
|
async switchPossibleValuesToVariable(variableName) {
|
|
7139
7257
|
await this.page.locator('.variable-toggle button').click();
|
|
@@ -7913,12 +8031,13 @@ class $8f36d138075416d2$export$bad60adab28720fb extends (0, $9626bc9256ce31f7$ex
|
|
|
7913
8031
|
|
|
7914
8032
|
|
|
7915
8033
|
|
|
7916
|
-
|
|
8034
|
+
|
|
8035
|
+
class $527f56b2e41ad18d$export$e0f84914460c3382 extends (0, $7de643aea2396373$export$3a6aeb461146cd7c) {
|
|
7917
8036
|
constructor(page){
|
|
7918
8037
|
super(page);
|
|
7919
8038
|
}
|
|
7920
8039
|
async clickEditVariable(variableName) {
|
|
7921
|
-
await this.
|
|
8040
|
+
await this.searchForVariable(variableName);
|
|
7922
8041
|
await this.page.getByText('Edit').click();
|
|
7923
8042
|
return new $527f56b2e41ad18d$var$TemplateVariableModal(this.page);
|
|
7924
8043
|
}
|