@camunda/e2e-test-suite 0.0.558 → 0.0.559

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.
@@ -193,12 +193,8 @@ class ModelerHomePage {
193
193
  const banner = this.messageBanner
194
194
  .or(this.closeButton)
195
195
  .or(this.modalCloseButton);
196
- if (await banner.isVisible({ timeout: 2000 })) {
197
- await banner.click();
198
- }
199
- else {
200
- console.log('No banner or close button found to click');
201
- }
196
+ await banner.waitFor({ state: 'visible', timeout: 5000 });
197
+ await banner.click();
202
198
  }
203
199
  catch {
204
200
  console.log('No banner or close button found to click');
@@ -202,12 +202,8 @@ class ModelerHomePage {
202
202
  const banner = this.messageBanner
203
203
  .or(this.closeButton)
204
204
  .or(this.modalCloseButton);
205
- if (await banner.isVisible({ timeout: 2000 })) {
206
- await banner.click();
207
- }
208
- else {
209
- console.log('No banner or close button found to click');
210
- }
205
+ await banner.waitFor({ state: 'visible', timeout: 5000 });
206
+ await banner.click();
211
207
  }
212
208
  catch {
213
209
  console.log('No banner or close button found to click');
@@ -214,12 +214,8 @@ class ModelerHomePage {
214
214
  const banner = this.messageBanner
215
215
  .or(this.closeButton)
216
216
  .or(this.modalCloseButton);
217
- if (await banner.isVisible({ timeout: 2000 })) {
218
- await banner.click();
219
- }
220
- else {
221
- console.log('No banner or close button found to click');
222
- }
217
+ await banner.waitFor({ state: 'visible', timeout: 5000 });
218
+ await banner.click();
223
219
  }
224
220
  catch {
225
221
  console.log('No banner or close button found to click');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.558",
3
+ "version": "0.0.559",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",