@camunda/e2e-test-suite 0.0.476 → 0.0.477

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.
@@ -90,7 +90,7 @@ class AppsPage {
90
90
  throw new Error(`Failed to click the modeler link after ${maxRetries} attempts.`);
91
91
  }
92
92
  async clickTasklist(clusterName) {
93
- const maxRetries = 3;
93
+ const maxRetries = 5;
94
94
  for (let retries = 0; retries < maxRetries; retries++) {
95
95
  try {
96
96
  if (retries === 0) {
@@ -105,6 +105,7 @@ class AppsPage {
105
105
  }
106
106
  else {
107
107
  await this.clickCamundaApps();
108
+ await (0, UtilitiesPage_1.waitForLoadingToFinish)(this.page);
108
109
  if (await this.tasklistLink.isVisible({ timeout: 5000 })) {
109
110
  await this.tasklistLink.click({ timeout: 10000 });
110
111
  }
@@ -352,11 +352,19 @@ class ClusterDetailsPage {
352
352
  const deleteButton = deletes[0];
353
353
  if (await deleteButton.isVisible()) {
354
354
  await deleteButton.click({ timeout: 60000 });
355
- await (0, test_1.expect)(dialog).toBeVisible({ timeout: 40000 });
356
- await this.deleteSubButton.click();
357
- await (0, test_1.expect)(this.page.getByText('Deleting...')).not.toBeVisible({
358
- timeout: 60000,
359
- });
355
+ // Handle confirmation dialog if it appears; some UI states delete without one
356
+ const dialogVisible = await dialog
357
+ .isVisible({ timeout: 5000 })
358
+ .catch(() => false);
359
+ if (dialogVisible) {
360
+ await this.deleteSubButton.click();
361
+ await (0, test_1.expect)(this.page.getByText('Deleting...')).not.toBeVisible({
362
+ timeout: 60000,
363
+ });
364
+ }
365
+ else {
366
+ await (0, sleep_1.sleep)(2000);
367
+ }
360
368
  }
361
369
  await (0, sleep_1.sleep)(3000);
362
370
  deletes = await this.deleteButton.all();
@@ -210,12 +210,21 @@ class ClusterSecretsPage {
210
210
  await this.bulkImportTextArea.click();
211
211
  await this.bulkImportTextArea.fill(mapped);
212
212
  await this.dialogImportButton.click();
213
- await (0, test_1.expect)(this.dialog).not.toBeVisible({
214
- timeout: 120000,
215
- });
213
+ try {
214
+ await (0, test_1.expect)(this.dialog).not.toBeVisible({
215
+ timeout: 60000,
216
+ });
217
+ }
218
+ catch {
219
+ // Import dialog didn't close - press Escape and let assertSecretsOrCreate handle creation
220
+ await this.page.keyboard.press('Escape');
221
+ await (0, test_1.expect)(this.dialog).not.toBeVisible({ timeout: 10000 });
222
+ }
216
223
  await (0, test_1.expect)(this.createNewSecretButton).toBeVisible({
217
224
  timeout: 60000,
218
225
  });
226
+ await this.page.reload();
227
+ await (0, sleep_1.sleep)(5000);
219
228
  }
220
229
  }
221
230
  exports.ClusterSecretsPage = ClusterSecretsPage;
@@ -20,6 +20,7 @@ class TaskProcessesPage {
20
20
  this.waitingForTasksText = this.page.getByText('Waiting for tasks...');
21
21
  }
22
22
  async clickpopupContinueButton() {
23
+ await this.page.waitForTimeout(3000);
23
24
  if ((await this.popupContinueButton.count()) > 0) {
24
25
  await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.popupContinueButton);
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.476",
3
+ "version": "0.0.477",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",