@camunda/e2e-test-suite 0.0.805 → 0.0.807

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.
@@ -27,13 +27,16 @@ class AuditLogPage {
27
27
  await (0, test_1.expect)(this.auditLogTab).toBeVisible({ timeout: 60000 });
28
28
  await this.auditLogTab.click({ timeout: 60000 });
29
29
  }
30
+ // Returns true when the category was newly checked (form made dirty).
30
31
  async ensureChecked(category) {
31
32
  const checkbox = this.clientCategoryCheckbox(category);
32
33
  await (0, test_1.expect)(checkbox).toBeAttached({ timeout: 30000 });
33
- if (!(await checkbox.isChecked())) {
34
- await this.clientCategoryLabel(category).click({ timeout: 30000 });
35
- await (0, test_1.expect)(checkbox).toBeChecked();
34
+ if (await checkbox.isChecked()) {
35
+ return false;
36
36
  }
37
+ await this.clientCategoryLabel(category).click({ timeout: 30000 });
38
+ await (0, test_1.expect)(checkbox).toBeChecked();
39
+ return true;
37
40
  }
38
41
  async enableClientOperationLogging() {
39
42
  const categories = [
@@ -41,10 +44,18 @@ class AuditLogPage {
41
44
  'Deployed resources',
42
45
  'User tasks',
43
46
  ];
47
+ let changed = false;
44
48
  for (const category of categories) {
45
- await this.ensureChecked(category);
49
+ if (await this.ensureChecked(category)) {
50
+ changed = true;
51
+ }
46
52
  }
47
- if (await this.updateButton.isEnabled()) {
53
+ // Only persist when a toggle actually dirtied the form. Wait for the Update
54
+ // button to enable rather than probing its state at a single instant —
55
+ // Carbon enables it a tick after the last checkbox re-renders, so a bare
56
+ // isEnabled() probe could skip the save and leave audit logging off.
57
+ if (changed) {
58
+ await (0, test_1.expect)(this.updateButton).toBeEnabled({ timeout: 60000 });
48
59
  await this.updateButton.click({ timeout: 60000 });
49
60
  await (0, test_1.expect)(this.updateButton).toBeDisabled({ timeout: 60000 });
50
61
  }
@@ -105,9 +105,12 @@ _8_9_1.test.describe('Cluster Setup Tests', () => {
105
105
  await homePage.clickSkipCustomization();
106
106
  await modelerHomePage.createCrossComponentProjectFolder();
107
107
  await modelerHomePage.clickHomeBreadcrumb();
108
- await (0, test_1.expect)(modelerHomePage.crossComponentProjectFolder).toBeVisible({
109
- timeout: 60000,
110
- });
108
+ // The project-rename PATCH commits on the backend, but navigating to
109
+ // Home right after can render the SPA's stale (pre-rename) project
110
+ // list without refetching, so the folder never appears under a plain
111
+ // toBeVisible. Reload between retries so the freshly renamed folder is
112
+ // fetched from the server and asserted visible.
113
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, modelerHomePage.crossComponentProjectFolder, 'cross component project folder', 30000, false, 5);
111
114
  });
112
115
  });
113
116
  }
@@ -15,10 +15,12 @@ exports.deletionAssertionOptions = {
15
15
  timeout: 60000,
16
16
  };
17
17
  // Longest options for audit-log assertions: entries land in secondary storage
18
- // only after the audit config propagates to the exporters.
18
+ // only after the audit config propagates to the exporters, which is markedly
19
+ // slower on freshly-provisioned SaaS clusters. 90s occasionally lapsed before
20
+ // the CLIENT-actor PROCESS_INSTANCE CREATE entry surfaced, so poll for 180s.
19
21
  exports.auditLogAssertionOptions = {
20
- intervals: [5000, 10000, 15000, 15000],
21
- timeout: 90000,
22
+ intervals: [5000, 10000, 15000, 20000, 30000],
23
+ timeout: 180000,
22
24
  };
23
25
  exports.TIMEOUT = {
24
26
  short: 15000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.805",
3
+ "version": "0.0.807",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",