@digital-ai/devops-page-object-release 1.0.9 → 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 +6 -0
- package/dist/main.js +30 -9
- package/dist/main.js.map +1 -1
- package/dist/module.js +30 -9
- 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/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -7903,7 +7903,30 @@ class $3fad6a9449b6416f$export$1a0994e9c202d529 extends (0, $f8721861c660dd88$ex
|
|
|
7903
7903
|
|
|
7904
7904
|
|
|
7905
7905
|
|
|
7906
|
-
|
|
7906
|
+
|
|
7907
|
+
|
|
7908
|
+
class $291bffc3fb5b079a$export$3a6aeb461146cd7c extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
7909
|
+
constructor(page){
|
|
7910
|
+
super(page);
|
|
7911
|
+
}
|
|
7912
|
+
getVariableSearchInputSelector() {
|
|
7913
|
+
return '.variables-search-filter input#variables-filter';
|
|
7914
|
+
}
|
|
7915
|
+
async expectVariablesCountToBe(count) {
|
|
7916
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('.variable .data-row')).toHaveCount(count);
|
|
7917
|
+
}
|
|
7918
|
+
async expectFirstVariableWithName(name) {
|
|
7919
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('.variable .data-row').first()).toContainText(name);
|
|
7920
|
+
}
|
|
7921
|
+
async searchForVariable(variableName) {
|
|
7922
|
+
await this.page.locator(this.getVariableSearchInputSelector()).fill(variableName);
|
|
7923
|
+
await this.expectVariablesCountToBe(1);
|
|
7924
|
+
await this.expectFirstVariableWithName(variableName);
|
|
7925
|
+
}
|
|
7926
|
+
}
|
|
7927
|
+
|
|
7928
|
+
|
|
7929
|
+
class $fd4eef3ad2b2e612$export$a87f0ae8695e74be extends (0, $291bffc3fb5b079a$export$3a6aeb461146cd7c) {
|
|
7907
7930
|
constructor(page){
|
|
7908
7931
|
super(page);
|
|
7909
7932
|
this.addListValue = this.page.locator('.variable-selector .xl-components-input-full input');
|
|
@@ -8049,25 +8072,22 @@ class $fd4eef3ad2b2e612$export$a87f0ae8695e74be extends (0, $f8721861c660dd88$ex
|
|
|
8049
8072
|
(0, $kKeXs$playwrighttest.expect)(rowLocator.toString()).toContain(type);
|
|
8050
8073
|
}
|
|
8051
8074
|
async clickEditVariable(variableName) {
|
|
8052
|
-
await this.
|
|
8075
|
+
await this.searchForVariable(variableName);
|
|
8053
8076
|
await this.page.getByText('Edit').first().click();
|
|
8054
8077
|
return new $fd4eef3ad2b2e612$var$ReleaseVariableModal(this.page);
|
|
8055
8078
|
}
|
|
8056
8079
|
async clickDeleteVariable(variableName) {
|
|
8057
|
-
await this.
|
|
8080
|
+
await this.searchForVariable(variableName);
|
|
8058
8081
|
await this.page.locator('.action .delete-icon').first().click();
|
|
8059
8082
|
return new $fd4eef3ad2b2e612$var$DeleteVariableModel(this.page);
|
|
8060
8083
|
}
|
|
8061
|
-
async expectVariablesCountToBe(count) {
|
|
8062
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('.variable .data-row')).toHaveCount(count);
|
|
8063
|
-
}
|
|
8064
8084
|
async expectVariableNotPresent(variableName) {
|
|
8065
8085
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('.variable').filter({
|
|
8066
8086
|
hasText: variableName
|
|
8067
8087
|
})).not.toBeVisible();
|
|
8068
8088
|
}
|
|
8069
8089
|
async clearSearch() {
|
|
8070
|
-
await this.page.locator(
|
|
8090
|
+
await this.page.locator('.variables-search-filter button.clear-icon-button').click();
|
|
8071
8091
|
}
|
|
8072
8092
|
async switchPossibleValuesToVariable(variableName) {
|
|
8073
8093
|
await this.page.locator('.variable-toggle button').click();
|
|
@@ -8847,12 +8867,13 @@ class $b12db2561a3bf785$export$bad60adab28720fb extends (0, $f8721861c660dd88$ex
|
|
|
8847
8867
|
|
|
8848
8868
|
|
|
8849
8869
|
|
|
8850
|
-
|
|
8870
|
+
|
|
8871
|
+
class $170d32617f3aa58e$export$e0f84914460c3382 extends (0, $291bffc3fb5b079a$export$3a6aeb461146cd7c) {
|
|
8851
8872
|
constructor(page){
|
|
8852
8873
|
super(page);
|
|
8853
8874
|
}
|
|
8854
8875
|
async clickEditVariable(variableName) {
|
|
8855
|
-
await this.
|
|
8876
|
+
await this.searchForVariable(variableName);
|
|
8856
8877
|
await this.page.getByText('Edit').click();
|
|
8857
8878
|
return new $170d32617f3aa58e$var$TemplateVariableModal(this.page);
|
|
8858
8879
|
}
|