@camunda/e2e-test-suite 0.0.171 → 0.0.173

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.
@@ -115,9 +115,22 @@ class PlayPage {
115
115
  }
116
116
  }
117
117
  async waitForNextElementToBeActive(historyItem) {
118
- await (0, test_1.expect)(this.page.getByText(new RegExp(`^${historyItem}`, 'i'))).toBeVisible({
119
- timeout: maxWaitTimeSeconds,
120
- });
118
+ const locator = this.page.getByText(new RegExp(`^${historyItem}`, 'i'));
119
+ const maxRetries = 6; // ~1 min with the waits below
120
+ for (let attempt = 1; attempt <= maxRetries; attempt++) {
121
+ try {
122
+ await (0, test_1.expect)(locator).toBeVisible({ timeout: 20000 });
123
+ return;
124
+ }
125
+ catch (e) {
126
+ if (attempt === maxRetries)
127
+ throw e;
128
+ // force UI to update
129
+ await this.page.reload();
130
+ await this.diagram.waitFor({ state: 'visible', timeout: 30000 });
131
+ await this.page.waitForTimeout(5000);
132
+ }
133
+ }
121
134
  }
122
135
  async waitForProcessToBeCompleted() {
123
136
  const incidentText = await this.page.getByText(/incident/i).count();
@@ -186,7 +199,7 @@ class PlayPage {
186
199
  async assertScenarioCompleted(scenarioName) {
187
200
  await (0, test_1.expect)(this.page
188
201
  .locator('tr', { hasText: scenarioName })
189
- .locator('text=Completed')).toBeVisible({ timeout: 30000 });
202
+ .locator('text=Completed')).toBeVisible({ timeout: 60000 });
190
203
  }
191
204
  }
192
205
  exports.PlayPage = PlayPage;
@@ -133,7 +133,7 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
133
133
  await modelerCreatePage.clickAppendEndEventButton();
134
134
  await modelerCreatePage.switchToPlay();
135
135
  await modelerCreatePage.clickContinueToPlay();
136
- await (0, sleep_1.sleep)(2000);
136
+ await (0, sleep_1.sleep)(5000);
137
137
  await playPage.clickStartInstanceButton();
138
138
  await playPage.waitForNextElementToBeActive('zeebe-user-task' + randomString);
139
139
  await playPage.waitForCompleteJobButtonToBeAvailable();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.171",
3
+ "version": "0.0.173",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",