@camunda/e2e-test-suite 0.0.1752 → 0.0.1754

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.
@@ -168,7 +168,33 @@ class OCIdentityRolesPage {
168
168
  await (0, test_1.expect)(this.createRoleModal).toBeVisible({ timeout: 30000 });
169
169
  await this.createIdField.fill(role.id);
170
170
  await this.createNameField.fill(role.name);
171
- await this.createRoleModalCreateButton.click();
171
+ // Disabling authorizations in Console reaches the cluster asynchronously
172
+ // and the cluster badge never leaves Healthy, so there is nothing to wait
173
+ // on upstream; until it lands, the create is rejected with a 403 and the
174
+ // modal stays open with an error. Resubmit only on that 403: any other
175
+ // error may mean the POST already landed, and a resubmit would conflict.
176
+ let submitError;
177
+ await (0, test_1.expect)(async () => {
178
+ if (submitError || !(await this.createRoleModal.isVisible())) {
179
+ return;
180
+ }
181
+ let response;
182
+ try {
183
+ [response] = await Promise.all([
184
+ this.page.waitForResponse((r) => r.request().method() === 'POST' &&
185
+ new URL(r.url()).pathname.endsWith('/v2/roles'), { timeout: 30000 }),
186
+ this.createRoleModalCreateButton.click({ timeout: 30000 }),
187
+ ]);
188
+ }
189
+ catch (error) {
190
+ submitError = error;
191
+ return;
192
+ }
193
+ (0, test_1.expect)(response.status(), 'POST /v2/roles status').not.toBe(403);
194
+ }).toPass({ timeout: 300000, intervals: [10000, 15000, 30000] });
195
+ if (submitError) {
196
+ throw submitError;
197
+ }
172
198
  await (0, test_1.expect)(this.createRoleModal).not.toBeVisible({ timeout: 30000 });
173
199
  await this.searchForRole(role.id);
174
200
  await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rolesList
@@ -247,9 +247,16 @@ _8_11_1.test.describe.parallel('RBA Enabled User Flows Test @tasklistV2', () =>
247
247
  await taskPanelPage.clickProcessesTab();
248
248
  await taskProcessesPage.clickpopupContinueButton();
249
249
  await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1);
250
- await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2, {
251
- shouldBeVisible: false,
252
- });
250
+ // Enabling authorizations reaches the cluster asynchronously and can take
251
+ // over a minute after Console reports it, so keep reloading until it does.
252
+ await (0, test_1.expect)(async () => {
253
+ await page.reload();
254
+ await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process1);
255
+ await (0, expectTextWithPagination_1.expectTextWithPagination)(page, process2, {
256
+ shouldBeVisible: false,
257
+ maxRetries: 1,
258
+ });
259
+ }).toPass({ timeout: 300000, intervals: [10000, 15000, 30000] });
253
260
  });
254
261
  await _8_11_1.test.step('Navigate to Operate and Only First Process Is Accessible', async () => {
255
262
  await appsPage.clickCamundaApps();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1752",
3
+ "version": "0.0.1754",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",