@camunda/e2e-test-suite 0.0.624 → 0.0.625

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.
@@ -179,7 +179,39 @@ class IdentityPage {
179
179
  }
180
180
  }
181
181
  async clickAssignRolesButton() {
182
- await this.assignRolesButton.click();
182
+ const rolesLoadError = this.page.getByText('The list of roles could not be loaded.');
183
+ const retryLink = this.page.getByText('Retry', { exact: true });
184
+ const maxRetries = 3;
185
+ for (let attempt = 1; attempt <= maxRetries; attempt++) {
186
+ await this.assignRolesButton.click();
187
+ try {
188
+ await this.operateCheckbox.waitFor({ state: 'visible', timeout: 10000 });
189
+ return;
190
+ }
191
+ catch {
192
+ if (await rolesLoadError.isVisible()) {
193
+ console.warn(`clickAssignRolesButton attempt ${attempt}: roles list failed to load, clicking Retry`);
194
+ await retryLink.click();
195
+ try {
196
+ await this.operateCheckbox.waitFor({
197
+ state: 'visible',
198
+ timeout: 10000,
199
+ });
200
+ return;
201
+ }
202
+ catch {
203
+ await this.page
204
+ .getByRole('button', { name: 'Cancel' })
205
+ .click()
206
+ .catch(() => { });
207
+ }
208
+ }
209
+ if (attempt === maxRetries) {
210
+ throw new Error(`Roles list failed to load after ${maxRetries} retries`);
211
+ }
212
+ await this.page.waitForTimeout(1000);
213
+ }
214
+ }
183
215
  }
184
216
  async clickAddButton() {
185
217
  await this.addButton.click();
@@ -230,7 +230,6 @@ async function modelWebhookConnector(modelerCreatePage, connectorMarketplacePage
230
230
  timeout: 30000,
231
231
  });
232
232
  await connectorMarketplacePage.downloadConnectorToProject();
233
- await modelerCreatePage.clickChangeTypeButton();
234
233
  }
235
234
  await modelerCreatePage.clickWebhookStartEventConnectorOption();
236
235
  await modelerCreatePage.clickWebhookIdInput();
@@ -82,6 +82,7 @@ SM_8_7_1.test.describe.parallel('Connectors User Flow Tests', () => {
82
82
  });
83
83
  });
84
84
  (0, SM_8_7_1.test)('Message Start Event Webhook Connector No Auth User Flow', async ({ modelerHomePage, navigationPage, modelerCreatePage, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, context, }) => {
85
+ SM_8_7_1.test.slow();
85
86
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
86
87
  const processName = 'Start_Event_Webhook_Connector_No_Auth_Process' + randomString;
87
88
  await SM_8_7_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -52,6 +52,7 @@ SM_8_7_1.test.describe.parallel('Optimize User Flow Tests', () => {
52
52
  });
53
53
  });
54
54
  (0, SM_8_7_1.test)('Job Worker User Task User Flow', async ({ page, context, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, }) => {
55
+ SM_8_7_1.test.slow();
55
56
  const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
56
57
  const processName = 'Optimize_Job_Worker_User_Task_Diagram' + reportName;
57
58
  await SM_8_7_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -18,6 +18,7 @@ SM_8_7_1.test.describe('Deploy and run a process in Play', () => {
18
18
  (0, loggingUtils_1.cleanupTestLogging)();
19
19
  });
20
20
  (0, SM_8_7_1.test)('User Tasks and Service Task', async ({ page, modelerHomePage, modelerCreatePage, playPage, context, navigationPage, }) => {
21
+ SM_8_7_1.test.slow();
21
22
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
22
23
  const processName = 'Play_Test_Process' + randomString;
23
24
  await SM_8_7_1.test.step('Open Cross Component Test Project', async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.624",
3
+ "version": "0.0.625",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",