@camunda/e2e-test-suite 0.0.307 → 0.0.309

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.
@@ -154,7 +154,7 @@ class AppsPage {
154
154
  console.warn(`Click attempt ${retries + 1} failed: ${error}`);
155
155
  await (0, UtilitiesPage_1.waitForLoadingToFinish)(this.page);
156
156
  if (!this.page.isClosed()) {
157
- await this.page.reload();
157
+ await this.page.reload({ waitUntil: 'domcontentloaded' });
158
158
  }
159
159
  await (0, sleep_1.sleep)(20000);
160
160
  }
@@ -212,7 +212,9 @@ class ModelerCreatePage {
212
212
  this.formLinkingTypeDropdown = page.getByLabel('Type');
213
213
  this.formLinkTypeOptions = page.locator('#bio-properties-panel-formType');
214
214
  this.addFormJsonConfigurationInput = page.getByLabel('Form JSON configuration');
215
- this.closeButton = page.getByRole('button', { name: 'Close' });
215
+ this.closeButton = page
216
+ .getByRole('dialog')
217
+ .getByRole('button', { name: 'Close' });
216
218
  this.publicationSection = page.locator('[data-group-id="group-process-publication"]');
217
219
  this.publicAccessToggle = page.getByRole('switch', {
218
220
  name: 'Toggle public access',
@@ -39,6 +39,7 @@ class OperateProcessesPage {
39
39
  .getByRole('checkbox');
40
40
  }
41
41
  async checkCheckbox(checkbox) {
42
+ await (0, test_1.expect)(checkbox).toBeVisible({ timeout: constants_1._1_SECOND_IN_MS * 10 });
42
43
  if (!(await checkbox.isChecked())) {
43
44
  await checkbox.click();
44
45
  await (0, test_1.expect)(checkbox).toBeChecked({
@@ -132,7 +133,7 @@ class OperateProcessesPage {
132
133
  catch (err) {
133
134
  lastError = err instanceof Error ? err.message : err;
134
135
  await this.page.reload();
135
- await (0, sleep_1.sleep)(1000);
136
+ await (0, sleep_1.sleep)(5000);
136
137
  }
137
138
  }
138
139
  throw new Error(`Failed to open instance "${processName}" after ${MAX_ATTEMPTS} attempts. Last error: ${String(lastError)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.307",
3
+ "version": "0.0.309",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",