@digital-ai/devops-page-object-release 1.0.8 → 1.0.10
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 +12 -0
- package/dist/main.js +50 -15
- package/dist/main.js.map +1 -1
- package/dist/module.js +50 -15
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +9 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -6969,7 +6969,30 @@ class $cc231ea61b77c7a2$export$1a0994e9c202d529 extends (0, $9626bc9256ce31f7$ex
|
|
|
6969
6969
|
|
|
6970
6970
|
|
|
6971
6971
|
|
|
6972
|
-
|
|
6972
|
+
|
|
6973
|
+
|
|
6974
|
+
class $7de643aea2396373$export$3a6aeb461146cd7c extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
6975
|
+
constructor(page){
|
|
6976
|
+
super(page);
|
|
6977
|
+
}
|
|
6978
|
+
getVariableSearchInputSelector() {
|
|
6979
|
+
return '.variables-search-filter input#variables-filter';
|
|
6980
|
+
}
|
|
6981
|
+
async expectVariablesCountToBe(count) {
|
|
6982
|
+
await (0, $hOLA6$expect)(this.page.locator('.variable .data-row')).toHaveCount(count);
|
|
6983
|
+
}
|
|
6984
|
+
async expectFirstVariableWithName(name) {
|
|
6985
|
+
await (0, $hOLA6$expect)(this.page.locator('.variable .data-row').first()).toContainText(name);
|
|
6986
|
+
}
|
|
6987
|
+
async searchForVariable(variableName) {
|
|
6988
|
+
await this.page.locator(this.getVariableSearchInputSelector()).fill(variableName);
|
|
6989
|
+
await this.expectVariablesCountToBe(1);
|
|
6990
|
+
await this.expectFirstVariableWithName(variableName);
|
|
6991
|
+
}
|
|
6992
|
+
}
|
|
6993
|
+
|
|
6994
|
+
|
|
6995
|
+
class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $7de643aea2396373$export$3a6aeb461146cd7c) {
|
|
6973
6996
|
constructor(page){
|
|
6974
6997
|
super(page);
|
|
6975
6998
|
this.addListValue = this.page.locator('.variable-selector .xl-components-input-full input');
|
|
@@ -7115,25 +7138,22 @@ class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $9626bc9256ce31f7$ex
|
|
|
7115
7138
|
(0, $hOLA6$expect)(rowLocator.toString()).toContain(type);
|
|
7116
7139
|
}
|
|
7117
7140
|
async clickEditVariable(variableName) {
|
|
7118
|
-
await this.
|
|
7141
|
+
await this.searchForVariable(variableName);
|
|
7119
7142
|
await this.page.getByText('Edit').first().click();
|
|
7120
7143
|
return new $f48771b486a3eb8f$var$ReleaseVariableModal(this.page);
|
|
7121
7144
|
}
|
|
7122
7145
|
async clickDeleteVariable(variableName) {
|
|
7123
|
-
await this.
|
|
7146
|
+
await this.searchForVariable(variableName);
|
|
7124
7147
|
await this.page.locator('.action .delete-icon').first().click();
|
|
7125
7148
|
return new $f48771b486a3eb8f$var$DeleteVariableModel(this.page);
|
|
7126
7149
|
}
|
|
7127
|
-
async expectVariablesCountToBe(count) {
|
|
7128
|
-
await (0, $hOLA6$expect)(this.page.locator('.variable .data-row')).toHaveCount(count);
|
|
7129
|
-
}
|
|
7130
7150
|
async expectVariableNotPresent(variableName) {
|
|
7131
7151
|
await (0, $hOLA6$expect)(this.page.locator('.variable').filter({
|
|
7132
7152
|
hasText: variableName
|
|
7133
7153
|
})).not.toBeVisible();
|
|
7134
7154
|
}
|
|
7135
7155
|
async clearSearch() {
|
|
7136
|
-
await this.page.locator(
|
|
7156
|
+
await this.page.locator('.variables-search-filter button.clear-icon-button').click();
|
|
7137
7157
|
}
|
|
7138
7158
|
async switchPossibleValuesToVariable(variableName) {
|
|
7139
7159
|
await this.page.locator('.variable-toggle button').click();
|
|
@@ -7913,12 +7933,13 @@ class $8f36d138075416d2$export$bad60adab28720fb extends (0, $9626bc9256ce31f7$ex
|
|
|
7913
7933
|
|
|
7914
7934
|
|
|
7915
7935
|
|
|
7916
|
-
|
|
7936
|
+
|
|
7937
|
+
class $527f56b2e41ad18d$export$e0f84914460c3382 extends (0, $7de643aea2396373$export$3a6aeb461146cd7c) {
|
|
7917
7938
|
constructor(page){
|
|
7918
7939
|
super(page);
|
|
7919
7940
|
}
|
|
7920
7941
|
async clickEditVariable(variableName) {
|
|
7921
|
-
await this.
|
|
7942
|
+
await this.searchForVariable(variableName);
|
|
7922
7943
|
await this.page.getByText('Edit').click();
|
|
7923
7944
|
return new $527f56b2e41ad18d$var$TemplateVariableModal(this.page);
|
|
7924
7945
|
}
|
|
@@ -8795,7 +8816,9 @@ class $4f618685ec16216c$export$3966fb3c0478db68 extends (0, $9626bc9256ce31f7$ex
|
|
|
8795
8816
|
}
|
|
8796
8817
|
async setArchivingSettingsDeleteIntervalUnit(value) {
|
|
8797
8818
|
const setDeleteInterval = this.page.locator('select#time-selector-releaseAgeToDeleteFromJcr');
|
|
8798
|
-
await setDeleteInterval.
|
|
8819
|
+
await setDeleteInterval.evaluate((el)=>el.scrollIntoView({
|
|
8820
|
+
block: 'center'
|
|
8821
|
+
}));
|
|
8799
8822
|
await setDeleteInterval.selectOption(value);
|
|
8800
8823
|
return this;
|
|
8801
8824
|
}
|
|
@@ -8805,10 +8828,14 @@ class $4f618685ec16216c$export$3966fb3c0478db68 extends (0, $9626bc9256ce31f7$ex
|
|
|
8805
8828
|
return this;
|
|
8806
8829
|
}
|
|
8807
8830
|
async setArchivePurgeEnableState(value) {
|
|
8808
|
-
|
|
8831
|
+
const checkbox = this.page.locator('#purgingEnabled');
|
|
8832
|
+
await checkbox.evaluate((el)=>el.scrollIntoView({
|
|
8833
|
+
block: 'center'
|
|
8834
|
+
}));
|
|
8835
|
+
if (value) await checkbox.check({
|
|
8809
8836
|
force: true
|
|
8810
8837
|
});
|
|
8811
|
-
else await
|
|
8838
|
+
else await checkbox.uncheck({
|
|
8812
8839
|
force: true
|
|
8813
8840
|
});
|
|
8814
8841
|
return this;
|
|
@@ -8839,13 +8866,21 @@ class $4f618685ec16216c$export$3966fb3c0478db68 extends (0, $9626bc9256ce31f7$ex
|
|
|
8839
8866
|
return this;
|
|
8840
8867
|
}
|
|
8841
8868
|
async setMaxArchiveRetentionPeriodIntervalUnit(value) {
|
|
8842
|
-
|
|
8869
|
+
const select = this.page.locator('#time-selector-maximumArchiveRetentionPeriod');
|
|
8870
|
+
await select.evaluate((el)=>el.scrollIntoView({
|
|
8871
|
+
block: 'center'
|
|
8872
|
+
}));
|
|
8873
|
+
await select.selectOption(value);
|
|
8843
8874
|
return this;
|
|
8844
8875
|
}
|
|
8845
8876
|
async setMaxArchiveRetentionPeriodInterval(value) {
|
|
8846
|
-
|
|
8877
|
+
const spinbutton = this.page.getByRole('spinbutton', {
|
|
8847
8878
|
name: 'Maximum archive retention'
|
|
8848
|
-
})
|
|
8879
|
+
});
|
|
8880
|
+
await spinbutton.evaluate((el)=>el.scrollIntoView({
|
|
8881
|
+
block: 'center'
|
|
8882
|
+
}));
|
|
8883
|
+
await spinbutton.fill(value);
|
|
8849
8884
|
return this;
|
|
8850
8885
|
}
|
|
8851
8886
|
async expectInputFieldToBeDisabled(fieldName) {
|