@camunda/e2e-test-suite 0.0.200 → 0.0.202

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.
package/README.md CHANGED
@@ -44,6 +44,7 @@ For the Camunda C8Run offering, the test suite supports following versions:
44
44
  - 8.7.X
45
45
  - 8.8.X
46
46
  - 8.9.X
47
+ - 8.10.X
47
48
 
48
49
  ### GitHub Actions for Testing
49
50
 
@@ -320,10 +321,12 @@ By following this convention, we ensure **clarity, consistency, and alignment wi
320
321
  ### c8Run Supported Versions, Modes and Projects
321
322
  | Version | Docker Allowed? | OS When Docker | OS When Non-Docker | Projects (Non-Docker) | Projects (Docker) |
322
323
  |---------|----------------|----------------|--------------------|-----------------------|-------------------|
323
- | 8.6 | No | — | ubuntu, macOS | — | chromium (ES) |
324
- | 8.7 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium (ES) | chromium (ES) |
325
- | 8.8 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium-v1 (ES) + chromium-v2 (ES) | chromium-v2 (ES) |
326
- | 8.9 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium-v1 (ES) + chromium-v2 (ES) + chromium-v2 (RDBMS) | chromium-v2 (ES) |
324
+ | 8.6 | No | — | ubuntu, macOS | — | chromium (ES) |
325
+ | 8.7 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium (ES) | chromium (ES) |
326
+ | 8.8 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium-v1 (ES) + chromium-v2 (ES) | chromium-v2 (ES) |
327
+ | 8.9 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium-v1 (ES) + chromium-v2 (ES) + chromium-v2 (RDBMS) | chromium-v2 (ES) |
328
+ | 8.10 | Yes | ubuntu-latest only | ubuntu, macOS, windows | chromium-v1 (ES) + chromium-v2 (ES) + chromium-v2 (RDBMS) | chromium-v2 (ES) |
329
+
327
330
  ## Viewing Test Results
328
331
 
329
332
  ### Locally:
@@ -62,9 +62,7 @@ class Authorization {
62
62
  this.createAuthorizationModal.getByRole('textbox', {
63
63
  name: 'Resource ID',
64
64
  });
65
- this.createAuthorizationAccessPermission = (name) => this.createAuthorizationModal.getByRole('checkbox', {
66
- name,
67
- });
65
+ this.createAuthorizationAccessPermission = (name) => this.createAuthorizationModal.locator(`.cds--checkbox-wrapper label[for="${name}"]`);
68
66
  this.createAuthorizationSubmitButton =
69
67
  this.createAuthorizationModal.getByRole('button', {
70
68
  name: 'Create authorization',
@@ -97,15 +95,34 @@ class Authorization {
97
95
  await this.createAuthorizationResourceIdField.fill(authorization.resourceId);
98
96
  for (const permission of authorization.accessPermissions) {
99
97
  await (0, sleep_1.sleep)(200);
100
- await (0, test_1.expect)(await this.createAuthorizationAccessPermission(permission)).toBeVisible();
101
- if (!(await this.createAuthorizationAccessPermission(permission).isChecked())) {
102
- await this.createAuthorizationAccessPermission(permission).click({
103
- force: true,
104
- });
98
+ const permissionLabel = this.createAuthorizationAccessPermission(permission);
99
+ const permissionInput = this.createAuthorizationModal.locator(`input[id="${permission}"]`);
100
+ await (0, test_1.expect)(permissionLabel).toBeVisible();
101
+ if (!(await permissionInput.isChecked())) {
102
+ await permissionLabel.scrollIntoViewIfNeeded();
103
+ await (0, sleep_1.sleep)(300);
104
+ let clickAttempts = 0;
105
+ const maxAttempts = 3;
106
+ while (!(await permissionInput.isChecked()) &&
107
+ clickAttempts < maxAttempts) {
108
+ clickAttempts++;
109
+ await permissionLabel.click({ force: true });
110
+ await (0, sleep_1.sleep)(500);
111
+ if (await permissionInput.isChecked()) {
112
+ break;
113
+ }
114
+ if (clickAttempts < maxAttempts) {
115
+ await permissionLabel.click();
116
+ await (0, sleep_1.sleep)(300);
117
+ }
118
+ }
119
+ await (0, test_1.expect)(permissionInput).toBeChecked({ timeout: 3000 });
105
120
  }
106
121
  }
107
122
  await this.createAuthorizationSubmitButton.click();
108
- await (0, test_1.expect)(this.createAuthorizationModal).not.toBeVisible();
123
+ await (0, test_1.expect)(this.createAuthorizationModal).not.toBeVisible({
124
+ timeout: 10000,
125
+ });
109
126
  await this.selectResourceTypeTab(authorization.resourceType).click();
110
127
  const item = this.page.getByRole('row').filter({
111
128
  hasText: `${authorization.ownerId}${authorization.resourceId}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",