@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/dist/module.js CHANGED
@@ -6969,7 +6969,30 @@ class $cc231ea61b77c7a2$export$1a0994e9c202d529 extends (0, $9626bc9256ce31f7$ex
6969
6969
 
6970
6970
 
6971
6971
 
6972
- class $f48771b486a3eb8f$export$a87f0ae8695e74be extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
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.page.locator("[id='variables-filter']").fill(variableName);
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.page.locator("[id='variables-filter']").fill(variableName);
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("[id='variables-filter']").clear();
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
- class $527f56b2e41ad18d$export$e0f84914460c3382 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
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.page.locator("[id='variables-filter']").fill(variableName);
7942
+ await this.searchForVariable(variableName);
7922
7943
  await this.page.getByText('Edit').click();
7923
7944
  return new $527f56b2e41ad18d$var$TemplateVariableModal(this.page);
7924
7945
  }