@camunda/e2e-test-suite 0.0.772 → 0.0.774

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.
@@ -290,14 +290,14 @@ if (node_process_1.default.env.IS_RBA === 'true') {
290
290
  await ocIdentityAuthorizationsPage.deleteAuthorization(`${processName}1`, 'PROCESS_DEFINITION');
291
291
  await ocIdentityAuthorizationsPage.clickProcessDefinitionTab();
292
292
  await ocIdentityAuthorizationsPage.deleteAuthorization(`${processName}2`, 'PROCESS_DEFINITION');
293
- await (0, sleep_1.sleep)(10000);
293
+ await (0, sleep_1.sleep)(30000);
294
294
  });
295
295
  await SM_8_10_1.test.step('Navigate to Tasklist and Make Sure that the Two Deployed Processes Are Not Accessible', async () => {
296
296
  await navigationPage.goToTasklist(undefined, credentials);
297
297
  await taskPanelPage.clickProcessesTab();
298
298
  await taskProcessesPage.clickpopupContinueButton();
299
- await (0, UtilitiesPage_1.expectTextWithPagination)(page, processName + '1', false, 60000);
300
- await (0, UtilitiesPage_1.expectTextWithPagination)(page, processName + '2', false, 60000);
299
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, page.getByText(`${processName}1`), `${processName}1`, 30000, true);
300
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, page.getByText(`${processName}2`), `${processName}2`, 30000, true);
301
301
  });
302
302
  });
303
303
  (0, SM_8_10_1.test)('RBA On User Flow - Permission for One Process @tasklistV1', async ({ page, modelerHomePage, modelerCreatePage, taskPanelPage, taskProcessesPage, operateHomePage, navigationPage, managementIdentityPage, keycloakLoginPage, keycloakAdminPage, ocIdentityHomePage, ocIdentityMappingRulesPage, ocIdentityRolesPage, ocIdentityAuthorizationsPage, browser, }, testInfo) => {
@@ -584,8 +584,8 @@ if (node_process_1.default.env.IS_RBA === 'true') {
584
584
  await navigationPage.goToTasklist(undefined, credentials);
585
585
  await taskPanelPage.clickProcessesTab();
586
586
  await taskProcessesPage.clickpopupContinueButton();
587
- await (0, UtilitiesPage_1.expectTextWithPagination)(page, processName + '1', false, 60000);
588
- await (0, UtilitiesPage_1.expectTextWithPagination)(page, processName + '2', false, 60000);
587
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, page.getByText(`${processName}1`), `${processName}1`, 30000, true);
588
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, page.getByText(`${processName}2`), `${processName}2`, 30000, true);
589
589
  });
590
590
  });
591
591
  (0, SM_8_10_1.test)('RBA On User Flow - Permission for All Processes', async ({ page, modelerHomePage, modelerCreatePage, taskPanelPage, taskProcessesPage, operateHomePage, navigationPage, managementIdentityPage, keycloakLoginPage, keycloakAdminPage, ocIdentityHomePage, ocIdentityMappingRulesPage, ocIdentityRolesPage, ocIdentityAuthorizationsPage, browser, }, testInfo) => {
@@ -6,8 +6,11 @@ const _setup_1 = require("../../test-setup.js");
6
6
  const zeebeClient_1 = require("../../utils/zeebeClient");
7
7
  const test_1 = require("@playwright/test");
8
8
  const sleep_1 = require("../../utils/sleep");
9
- const constants_1 = require("../../utils/constants");
10
9
  const apiHelpers_1 = require("../../utils/apiHelpers");
10
+ const webhookAssertionOptions = {
11
+ intervals: [10000, 15000, 30000, 30000],
12
+ timeout: 120000,
13
+ };
11
14
  c8Run_8_9_1.test.beforeAll(async () => {
12
15
  await (0, apiHelpers_1.waitForConnectorsReady)();
13
16
  await Promise.all([
@@ -79,7 +82,7 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
79
82
  const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
80
83
  '/inbound/test-webhook-id');
81
84
  await (0, test_1.expect)(response.status()).toBe(200);
82
- }).toPass(constants_1.defaultAssertionOptions);
85
+ }).toPass(webhookAssertionOptions);
83
86
  });
84
87
  await c8Run_8_9_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
85
88
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -101,7 +104,7 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
101
104
  },
102
105
  });
103
106
  await (0, test_1.expect)(response.status()).toBe(200);
104
- }).toPass(constants_1.defaultAssertionOptions);
107
+ }).toPass(webhookAssertionOptions);
105
108
  });
106
109
  await c8Run_8_9_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
107
110
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.772",
3
+ "version": "0.0.774",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",