@camunda/e2e-test-suite 0.0.1271 → 0.0.1272

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.
Files changed (48) hide show
  1. package/dist/pages/8.10/ClusterSecretsPage.js +17 -1
  2. package/dist/pages/8.9/ClusterPage.js +11 -2
  3. package/dist/pages/8.9/ClusterSecretsPage.js +19 -4
  4. package/dist/pages/BrowseAllConnectorMarketplacePage.d.ts +1 -0
  5. package/dist/pages/BrowseAllConnectorMarketplacePage.js +26 -14
  6. package/dist/pages/SM-8.9/ClusterPage.js +5 -1
  7. package/dist/resources/Basic_Auth_REST_Connector.bpmn +2 -2
  8. package/dist/resources/ConnectorsBasicTest.bpmn +6 -6
  9. package/dist/resources/REST_Connector_Bearer_Auth_Process.bpmn +2 -2
  10. package/dist/resources/REST_Connector_No_Auth_Process.bpmn +1 -1
  11. package/dist/test-setup.d.ts +0 -1
  12. package/dist/test-setup.js +7 -29
  13. package/dist/tests/8.10/connectors-user-flows.spec.js +4 -7
  14. package/dist/tests/8.10/saas-migration-path-user-flows.spec.js +1 -2
  15. package/dist/tests/8.10/smoke-tests.spec.js +2 -3
  16. package/dist/tests/8.7/connectors-user-flows.spec.js +10 -14
  17. package/dist/tests/8.7/saas-migration-path-user-flows.spec.js +1 -2
  18. package/dist/tests/8.7/smoke-tests.spec.js +3 -3
  19. package/dist/tests/8.8/connectors-user-flows.spec.js +5 -7
  20. package/dist/tests/8.8/saas-migration-path-user-flows.spec.js +1 -2
  21. package/dist/tests/8.8/smoke-tests.spec.js +3 -3
  22. package/dist/tests/8.9/connectors-user-flows.spec.js +5 -7
  23. package/dist/tests/8.9/saas-migration-path-user-flows.spec.js +1 -2
  24. package/dist/tests/8.9/smoke-tests.spec.js +3 -3
  25. package/dist/tests/SM-8.10/connectors-user-flows.spec.js +6 -9
  26. package/dist/tests/SM-8.10/mt-enabled-user-flows.spec.js +6 -6
  27. package/dist/tests/SM-8.10/smoke-tests.spec.js +2 -1
  28. package/dist/tests/SM-8.7/connectors-user-flows.spec.js +4 -4
  29. package/dist/tests/SM-8.7/mt-enabled-user-flows.spec.js +5 -4
  30. package/dist/tests/SM-8.7/smoke-tests.spec.js +3 -2
  31. package/dist/tests/SM-8.8/connectors-user-flows.spec.js +4 -4
  32. package/dist/tests/SM-8.8/mt-enabled-user-flows.spec.js +5 -4
  33. package/dist/tests/SM-8.8/smoke-tests.spec.js +2 -1
  34. package/dist/tests/SM-8.9/connectors-user-flows.spec.js +6 -6
  35. package/dist/tests/SM-8.9/mt-enabled-user-flows.spec.js +5 -4
  36. package/dist/tests/SM-8.9/smoke-tests.spec.js +2 -1
  37. package/dist/tests/c8Run-8.10/connectors-user-flows.spec.js +2 -2
  38. package/dist/tests/c8Run-8.7/connectors-user-flows.spec.js +5 -8
  39. package/dist/tests/c8Run-8.8/connectors-user-flows.spec.js +5 -8
  40. package/dist/tests/c8Run-8.9/connectors-user-flows.spec.js +5 -8
  41. package/dist/utils/connectorSecrets.js +2 -1
  42. package/dist/utils/constants.d.ts +2 -0
  43. package/dist/utils/constants.js +20 -1
  44. package/package.json +1 -1
  45. package/resources/Basic_Auth_REST_Connector.bpmn +2 -2
  46. package/resources/ConnectorsBasicTest.bpmn +6 -6
  47. package/resources/REST_Connector_Bearer_Auth_Process.bpmn +2 -2
  48. package/resources/REST_Connector_No_Auth_Process.bpmn +1 -1
@@ -12,6 +12,7 @@ const apiHelpers_1 = require("../../utils/apiHelpers");
12
12
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
13
13
  const users_1 = require("../../utils/users");
14
14
  const connectorSecrets_1 = require("../../utils/connectorSecrets");
15
+ const constants_1 = require("../../utils/constants");
15
16
  const testUser = (0, users_1.getTestUser)('seventeenthUser');
16
17
  _8_9_1.test.describe.configure({ mode: 'parallel' });
17
18
  _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
@@ -24,8 +25,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
24
25
  await (0, _setup_1.captureScreenshot)(page, testInfo);
25
26
  await (0, _setup_1.captureFailureVideo)(page, testInfo);
26
27
  });
27
- // Skipped due to bug #3673: https://github.com/camunda/c8-cross-component-e2e-tests/issues/3673
28
- _8_9_1.test.skip('REST Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
28
+ (0, _8_9_1.test)('REST Connector No Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
29
29
  _8_9_1.test.slow();
30
30
  const processName = 'REST_Connector_No_Auth_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
31
31
  await _8_9_1.test.step('Navigate to Web Modeler', async () => {
@@ -44,7 +44,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
44
44
  await modelerHomePage.clickBpmnTemplateOption();
45
45
  });
46
46
  await _8_9_1.test.step('Create BPMN Diagram with REST Connector and Start Process Instance', async () => {
47
- await (0, UtilitiesPage_2.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
47
+ await (0, UtilitiesPage_2.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
48
48
  await modelerCreatePage.runProcessInstance(defaultClusterName);
49
49
  });
50
50
  await _8_9_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
@@ -65,8 +65,7 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
65
65
  });
66
66
  });
67
67
  });
68
- // Skipped due to bug #3673: https://github.com/camunda/c8-cross-component-e2e-tests/issues/3673
69
- _8_9_1.test.skip('REST Connector Bearer Token Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
68
+ (0, _8_9_1.test)('REST Connector Bearer Token Auth User Flow', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
70
69
  _8_9_1.test.slow();
71
70
  const processName = 'REST_Connector_Bearer_Auth_Process' +
72
71
  (await (0, _setup_1.generateRandomStringAsync)(3));
@@ -86,9 +85,8 @@ _8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
86
85
  await modelerHomePage.clickBpmnTemplateOption();
87
86
  });
88
87
  await _8_9_1.test.step('Create BPMN Diagram with REST Connector with Bearer Token Auth and Start Process Instance', async () => {
89
- await (0, UtilitiesPage_2.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}');
88
+ await (0, UtilitiesPage_2.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, constants_1.REST_MOCK_URL, 'bearer', '{message:response.body.message}');
90
89
  await modelerCreatePage.runProcessInstance(defaultClusterName);
91
- await (0, _setup_1.performBearerTokenAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'thisisabearertoken');
92
90
  });
93
91
  await _8_9_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
94
92
  await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeVisible({
@@ -155,8 +155,7 @@ _8_9_1.test.describe('SaaS Migration Path Tests', () => {
155
155
  await (0, test_1.expect)(page.getByRole('cell', { name: 'Admin' })).toBeVisible();
156
156
  });
157
157
  });
158
- // Skipped due to bug #3673: https://github.com/camunda/c8-cross-component-e2e-tests/issues/3673
159
- _8_9_1.test.skip('Assert Connectors Still Function After SaaS Upgrade @tasklistV2', async ({ operateHomePage, appsPage, operateProcessesPage, operateProcessInstancePage, }) => {
158
+ (0, _8_9_1.test)('Assert Connectors Still Function After SaaS Upgrade @tasklistV2', async ({ operateHomePage, appsPage, operateProcessesPage, operateProcessInstancePage, }) => {
160
159
  _8_9_1.test.slow();
161
160
  // Use the same fixed name that was created in the pre-upgrade smoke tests
162
161
  const processName = 'REST_Connector_Basic_Auth_ProcessUpgradeTest';
@@ -15,6 +15,7 @@ const OptimizeCollectionsPage_1 = require("../../pages/8.9/OptimizeCollectionsPa
15
15
  const OptimizeReportPage_1 = require("../../pages/8.9/OptimizeReportPage");
16
16
  const users_1 = require("../../utils/users");
17
17
  const sleep_1 = require("../../utils/sleep");
18
+ const constants_1 = require("../../utils/constants");
18
19
  const testUser = (0, users_1.getTestUser)('thirteenthUser');
19
20
  const CLUSTER_NAME = 'Test Cluster';
20
21
  const TIMEOUT = {
@@ -181,8 +182,7 @@ _8_9_1.test.describe('Smoke Tests', () => {
181
182
  });
182
183
  });
183
184
  });
184
- // Skipped due to bug #3673: https://github.com/camunda/c8-cross-component-e2e-tests/issues/3673
185
- _8_9_1.test.skip('Most Common REST Connector User Flow', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
185
+ (0, _8_9_1.test)('Most Common REST Connector User Flow', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, }) => {
186
186
  _8_9_1.test.slow();
187
187
  const randomString = useFixedNames
188
188
  ? 'UpgradeTest'
@@ -201,7 +201,7 @@ _8_9_1.test.describe('Smoke Tests', () => {
201
201
  await modelerHomePage.clickBpmnTemplateOption();
202
202
  });
203
203
  await _8_9_1.test.step('Create BPMN diagram with REST Connector using Basic Auth and start process', async () => {
204
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
204
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
205
205
  await modelerCreatePage.runProcessInstance(CLUSTER_NAME);
206
206
  });
207
207
  await _8_9_1.test.step('Assert process completes in Operate and verify connector result', async () => {
@@ -5,6 +5,7 @@ const SM_8_10_1 = require("../../fixtures/SM-8.10");
5
5
  const _setup_1 = require("../../test-setup.js");
6
6
  const UtilitiesPage_1 = require("../../pages/SM-8.10/UtilitiesPage");
7
7
  const sleep_1 = require("../../utils/sleep");
8
+ const constants_1 = require("../../utils/constants");
8
9
  // Serial: the two active webhook tests both fall back to importing the
9
10
  // "Webhook Connector" marketplace package (which bundles the Boundary,
10
11
  // Intermediate and Message-Start template variants) when the template is not
@@ -36,7 +37,7 @@ SM_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
36
37
  await modelerHomePage.clickBpmnTemplateOption();
37
38
  });
38
39
  await SM_8_10_1.test.step('Create BPMN Diagram with REST Connector and Start Process Instance', async () => {
39
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
40
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
40
41
  await modelerCreatePage.runProcessInstance('', mtTenant);
41
42
  await (0, sleep_1.sleep)(20000);
42
43
  });
@@ -55,8 +56,7 @@ SM_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
55
56
  });
56
57
  });
57
58
  });
58
- // Skipped due to bug #3673: https://github.com/camunda/c8-cross-component-e2e-tests/issues/3673
59
- SM_8_10_1.test.skip('REST Connector Bearer Token Auth User Flow', async ({ page, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, }) => {
59
+ (0, SM_8_10_1.test)('REST Connector Bearer Token Auth User Flow', async ({ page, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, }) => {
60
60
  SM_8_10_1.test.slow();
61
61
  const processName = 'REST_Connector_Bearer_Auth_Process' +
62
62
  (await (0, _setup_1.generateRandomStringAsync)(3));
@@ -66,9 +66,8 @@ SM_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
66
66
  await modelerHomePage.clickBpmnTemplateOption();
67
67
  });
68
68
  await SM_8_10_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
69
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}');
69
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'bearer', '{message:response.body.message}');
70
70
  await modelerCreatePage.runProcessInstance('', mtTenant);
71
- await (0, _setup_1.performBearerTokenAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'thisisabearertoken');
72
71
  await (0, sleep_1.sleep)(20000);
73
72
  });
74
73
  await SM_8_10_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
@@ -173,9 +172,7 @@ SM_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
173
172
  await modelerHomePage.clickBpmnTemplateOption();
174
173
  });
175
174
  await SM_8_10_1.test.step('Create BPMN Diagram with REST Connector using secrets and Start Process Instance', async () => {
176
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic',
177
- // beeceptor basic-auth-test rule currently unconfigured — assert HTTP status instead of body
178
- '{message:string(response.status)}', {
175
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', {
179
176
  resultVariable: 'result',
180
177
  basicAuthCredentials: {
181
178
  username: '{{secrets.username}}',
@@ -192,7 +189,7 @@ SM_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
192
189
  const result = await operateProcessInstancePage.assertEitherIncidentOrCompletedIconVisible();
193
190
  (0, test_1.expect)(result).toBe('completed');
194
191
  await operateProcessInstancePage.assertResultVariableVisibleWithRetry('message');
195
- await operateProcessInstancePage.assertProcessVariableContainsText('message', '"200"');
192
+ await operateProcessInstancePage.assertProcessVariableContainsText('message', '"Message from Mock!"');
196
193
  });
197
194
  });
198
195
  (0, SM_8_10_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ modelerHomePage, modelerCreatePage, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, navigationPage, connectorMarketplacePage, connectorSettingsPage, }) => {
@@ -7,6 +7,7 @@ const UtilitiesPage_1 = require("../../pages/SM-8.10/UtilitiesPage");
7
7
  const resetSession_1 = require("../../utils/resetSession");
8
8
  const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
9
9
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
10
+ const constants_1 = require("../../utils/constants");
10
11
  const demoUserEmail = process.env.DEMO_USER_EMAIL || 'demo@example.org';
11
12
  const demoUserDisplayText = `Demo User${demoUserEmail}`;
12
13
  if (process.env.IS_MT === 'true') {
@@ -159,7 +160,7 @@ if (process.env.IS_MT === 'true') {
159
160
  await modelerHomePage.clickBpmnTemplateOption();
160
161
  });
161
162
  await SM_8_10_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
162
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
163
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
163
164
  await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
164
165
  });
165
166
  await SM_8_10_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
@@ -305,7 +306,7 @@ if (process.env.IS_MT === 'true') {
305
306
  await modelerHomePage.clickBpmnTemplateOption();
306
307
  });
307
308
  await SM_8_10_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
308
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', {
309
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body', {
309
310
  recoverSession: () => navigationPage.goToModeler(undefined, credentials),
310
311
  });
311
312
  await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
@@ -393,8 +394,7 @@ if (process.env.IS_MT === 'true') {
393
394
  });
394
395
  }
395
396
  });
396
- // Skipped due to bug #3673: https://github.com/camunda/c8-cross-component-e2e-tests/issues/3673
397
- SM_8_10_1.test.skip('User Can Be Assigned To Multiple Tenants @tasklistV2', async ({ page, modelerHomePage, modelerCreatePage, operateProcessInstancePage, operateProcessesPage, operateHomePage, navigationPage, managementIdentityTenantPage, connectorSettingsPage, connectorMarketplacePage, ocIdentityHomePage, ocTenantPage, managementIdentityPage, }) => {
397
+ (0, SM_8_10_1.test)('User Can Be Assigned To Multiple Tenants @tasklistV2', async ({ page, modelerHomePage, modelerCreatePage, operateProcessInstancePage, operateProcessesPage, operateHomePage, navigationPage, managementIdentityTenantPage, connectorSettingsPage, connectorMarketplacePage, ocIdentityHomePage, ocTenantPage, managementIdentityPage, }) => {
398
398
  SM_8_10_1.test.slow();
399
399
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
400
400
  const processName1 = 'Multiple_Tenant_Flow_1' + randomString;
@@ -440,14 +440,14 @@ if (process.env.IS_MT === 'true') {
440
440
  await modelerHomePage.clickBpmnTemplateOption();
441
441
  });
442
442
  await SM_8_10_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 1', async () => {
443
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
443
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, constants_1.REST_MOCK_URL, 'noAuth', 'body');
444
444
  await modelerCreatePage.runProcessInstance('', tenantName1); //Identity bug https://github.com/camunda/camunda/issues/35834
445
445
  });
446
446
  await SM_8_10_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 2', async () => {
447
447
  await modelerHomePage.clickProjectBreadcrumb();
448
448
  await modelerHomePage.clickDiagramTypeDropdown();
449
449
  await modelerHomePage.clickBpmnTemplateOption();
450
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
450
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, constants_1.REST_MOCK_URL, 'noAuth', 'body');
451
451
  await modelerCreatePage.runProcessInstance('', tenantName2);
452
452
  });
453
453
  await SM_8_10_1.test.step('View Process Instances in Operate, and Assert Process Complete in Operate with Correct Tenant', async () => {
@@ -8,6 +8,7 @@ const optimizeReportUtils_1 = require("../../pages/SM-8.10/optimizeReportUtils")
8
8
  const loggingUtils_1 = require("../../utils/loggingUtils");
9
9
  const resetSession_1 = require("../../utils/resetSession");
10
10
  const KeycloakUtils_1 = require("../../pages/SM-8.10/KeycloakUtils");
11
+ const constants_1 = require("../../utils/constants");
11
12
  SM_8_10_1.test.describe.parallel('Smoke Tests', () => {
12
13
  SM_8_10_1.test.beforeEach(async ({ navigationPage, managementIdentityPage, managementIdentityTenantPage, keycloakLoginPage, keycloakAdminPage, page, browser, loginPage, ocIdentityHomePage, ocIdentityRolesPage, }, testInfo) => {
13
14
  if (process.env.IS_MIGRATION === 'true') {
@@ -138,7 +139,7 @@ SM_8_10_1.test.describe.parallel('Smoke Tests', () => {
138
139
  await modelerHomePage.clickBpmnTemplateOption();
139
140
  });
140
141
  await SM_8_10_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
141
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
142
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', {
142
143
  resultVariable: 'result',
143
144
  basicAuthCredentials: { username: 'username', password: 'password' },
144
145
  });
@@ -8,6 +8,7 @@ const KeycloakUtils_1 = require("../../pages/SM-8.7/KeycloakUtils");
8
8
  const sleep_1 = require("../../utils/sleep");
9
9
  const env_1 = require("../../utils/env");
10
10
  const loggingUtils_1 = require("../../utils/loggingUtils");
11
+ const constants_1 = require("../../utils/constants");
11
12
  SM_8_7_1.test.describe.parallel('Connectors User Flow Tests', () => {
12
13
  SM_8_7_1.test.beforeEach(async ({ navigationPage, identityPage, identityTenantPage, keycloakLoginPage, keycloakAdminPage, }, testInfo) => {
13
14
  (0, loggingUtils_1.setupTestLogging)(testInfo);
@@ -30,7 +31,7 @@ SM_8_7_1.test.describe.parallel('Connectors User Flow Tests', () => {
30
31
  await modelerHomePage.clickBpmnTemplateOption();
31
32
  });
32
33
  await SM_8_7_1.test.step('Create BPMN Diagram with REST Connector and Start Process Instance', async () => {
33
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'http://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
34
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
34
35
  await modelerCreatePage.runProcessInstance();
35
36
  });
36
37
  await SM_8_7_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
@@ -62,9 +63,8 @@ SM_8_7_1.test.describe.parallel('Connectors User Flow Tests', () => {
62
63
  await modelerHomePage.clickBpmnTemplateOption();
63
64
  });
64
65
  await SM_8_7_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
65
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}');
66
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'bearer', '{message:response.body.message}');
66
67
  await modelerCreatePage.runProcessInstance();
67
- await (0, _setup_1.performBearerTokenAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'thisisabearertoken');
68
68
  });
69
69
  await SM_8_7_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
70
70
  await navigationPage.goToOperate();
@@ -134,7 +134,7 @@ SM_8_7_1.test.describe.parallel('Connectors User Flow Tests', () => {
134
134
  await modelerHomePage.clickBpmnTemplateOption();
135
135
  });
136
136
  await SM_8_7_1.test.step('Create BPMN Diagram with REST Connector using secrets and Start Process Instance', async () => {
137
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', 'result', { username: '{{secrets.username}}', password: '{{secrets.password}}' });
137
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', 'result', { username: '{{secrets.username}}', password: '{{secrets.password}}' });
138
138
  await modelerCreatePage.runProcessInstance();
139
139
  });
140
140
  await SM_8_7_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
@@ -7,6 +7,7 @@ const sleep_1 = require("../../utils/sleep");
7
7
  const UtlitiesPage_1 = require("../../pages/SM-8.7/UtlitiesPage");
8
8
  const KeycloakUtils_1 = require("../../pages/SM-8.7/KeycloakUtils");
9
9
  const loggingUtils_1 = require("../../utils/loggingUtils");
10
+ const constants_1 = require("../../utils/constants");
10
11
  if (process.env.IS_MT === 'true') {
11
12
  SM_8_7_1.test.describe.configure({ mode: 'parallel' });
12
13
  SM_8_7_1.test.describe('MT Enabled User Flows Test', () => {
@@ -154,7 +155,7 @@ if (process.env.IS_MT === 'true') {
154
155
  await modelerHomePage.clickBpmnTemplateOption();
155
156
  });
156
157
  await SM_8_7_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
157
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
158
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
158
159
  await modelerCreatePage.clickStartInstanceMainButton();
159
160
  await modelerCreatePage.clickTenantIdInput();
160
161
  await modelerCreatePage.fillTenantIdInput(tenantName);
@@ -261,7 +262,7 @@ if (process.env.IS_MT === 'true') {
261
262
  await modelerHomePage.clickBpmnTemplateOption();
262
263
  });
263
264
  await SM_8_7_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
264
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
265
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
265
266
  await modelerCreatePage.clickStartInstanceMainButton();
266
267
  await modelerCreatePage.clickTenantIdInput();
267
268
  await modelerCreatePage.fillTenantIdInput(tenantName);
@@ -362,7 +363,7 @@ if (process.env.IS_MT === 'true') {
362
363
  await modelerHomePage.clickBpmnTemplateOption();
363
364
  });
364
365
  await SM_8_7_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 1', async () => {
365
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
366
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, constants_1.REST_MOCK_URL, 'noAuth', 'body');
366
367
  await modelerCreatePage.clickStartInstanceMainButton();
367
368
  await modelerCreatePage.clickTenantIdInput();
368
369
  await modelerCreatePage.fillTenantIdInput(tenantName1);
@@ -372,7 +373,7 @@ if (process.env.IS_MT === 'true') {
372
373
  await modelerHomePage.clickProjectBreadcrumb();
373
374
  await modelerHomePage.clickDiagramTypeDropdown();
374
375
  await modelerHomePage.clickBpmnTemplateOption();
375
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
376
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, constants_1.REST_MOCK_URL, 'noAuth', 'body');
376
377
  await modelerCreatePage.clickStartInstanceMainButton();
377
378
  await modelerCreatePage.clickTenantIdInput();
378
379
  await modelerCreatePage.fillTenantIdInput(tenantName2);
@@ -8,6 +8,7 @@ const env_1 = require("../../utils/env");
8
8
  const KeycloakUtils_1 = require("../../pages/SM-8.7/KeycloakUtils");
9
9
  const optimizeReportUtils_1 = require("../../pages/SM-8.7/optimizeReportUtils");
10
10
  const loggingUtils_1 = require("../../utils/loggingUtils");
11
+ const constants_1 = require("../../utils/constants");
11
12
  SM_8_7_1.test.describe.parallel('Smoke Tests', () => {
12
13
  SM_8_7_1.test.beforeEach(async ({ navigationPage, identityPage, identityTenantPage, keycloakLoginPage, keycloakAdminPage, }, testInfo) => {
13
14
  if (process.env.IS_MIGRATION === 'true') {
@@ -166,7 +167,7 @@ SM_8_7_1.test.describe.parallel('Smoke Tests', () => {
166
167
  await modelerHomePage.clickBpmnTemplateOption();
167
168
  });
168
169
  await SM_8_7_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
169
- await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
170
+ await (0, UtlitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
170
171
  await modelerCreatePage.runProcessInstance();
171
172
  if (process.env.IS_RBA === 'true') {
172
173
  await navigationPage.goToIdentity();
@@ -178,7 +179,7 @@ SM_8_7_1.test.describe.parallel('Smoke Tests', () => {
178
179
  });
179
180
  await identityUsersPage.createResourceAuthorization(processName);
180
181
  }
181
- await (0, _setup_1.performBasicAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'username', 'password');
182
+ await (0, _setup_1.performBasicAuthPostRequest)(constants_1.REST_MOCK_BASIC_AUTH_URL, 'username', 'password');
182
183
  });
183
184
  await SM_8_7_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
184
185
  await navigationPage.goToOperate();
@@ -5,6 +5,7 @@ const SM_8_8_1 = require("../../fixtures/SM-8.8");
5
5
  const _setup_1 = require("../../test-setup.js");
6
6
  const UtilitiesPage_1 = require("../../pages/SM-8.8/UtilitiesPage");
7
7
  const sleep_1 = require("../../utils/sleep");
8
+ const constants_1 = require("../../utils/constants");
8
9
  SM_8_8_1.test.describe.configure({ mode: 'parallel' });
9
10
  SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
10
11
  SM_8_8_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
@@ -24,7 +25,7 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
24
25
  await modelerHomePage.clickBpmnTemplateOption();
25
26
  });
26
27
  await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector and Start Process Instance', async () => {
27
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
28
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body', { page, modelerHomePage });
28
29
  await modelerCreatePage.runProcessInstance();
29
30
  await (0, sleep_1.sleep)(20000);
30
31
  });
@@ -54,9 +55,8 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
54
55
  await modelerHomePage.clickBpmnTemplateOption();
55
56
  });
56
57
  await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
57
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}', { page, modelerHomePage });
58
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'bearer', '{message:response.body.message}', { page, modelerHomePage });
58
59
  await modelerCreatePage.runProcessInstance();
59
- await (0, _setup_1.performBearerTokenAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'thisisabearertoken');
60
60
  await (0, sleep_1.sleep)(20000);
61
61
  });
62
62
  await SM_8_8_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
@@ -142,7 +142,7 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
142
142
  await modelerHomePage.clickBpmnTemplateOption();
143
143
  });
144
144
  await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector using secrets and Start Process Instance', async () => {
145
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
145
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', {
146
146
  resultVariable: 'result',
147
147
  basicAuthCredentials: {
148
148
  username: '{{secrets.username}}',
@@ -7,6 +7,7 @@ const UtilitiesPage_1 = require("../../pages/SM-8.8/UtilitiesPage");
7
7
  const resetSession_1 = require("../../utils/resetSession");
8
8
  const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
9
9
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
10
+ const constants_1 = require("../../utils/constants");
10
11
  const demoUserEmail = process.env.DEMO_USER_EMAIL || 'demo@example.org';
11
12
  const demoUserDisplayText = `Demo User${demoUserEmail}`;
12
13
  if (process.env.IS_MT === 'true') {
@@ -157,7 +158,7 @@ if (process.env.IS_MT === 'true') {
157
158
  await modelerHomePage.clickBpmnTemplateOption();
158
159
  });
159
160
  await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
160
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
161
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body', { page, modelerHomePage });
161
162
  await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
162
163
  });
163
164
  await SM_8_8_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
@@ -302,7 +303,7 @@ if (process.env.IS_MT === 'true') {
302
303
  await modelerHomePage.clickBpmnTemplateOption();
303
304
  });
304
305
  await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
305
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', {
306
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body', {
306
307
  page,
307
308
  modelerHomePage,
308
309
  recoverSession: () => navigationPage.goToModeler(undefined, credentials),
@@ -440,14 +441,14 @@ if (process.env.IS_MT === 'true') {
440
441
  await modelerHomePage.clickBpmnTemplateOption();
441
442
  });
442
443
  await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 1', async () => {
443
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
444
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, constants_1.REST_MOCK_URL, 'noAuth', 'body', { page, modelerHomePage });
444
445
  await modelerCreatePage.runProcessInstance('', tenantName1); //Identity bug https://github.com/camunda/camunda/issues/35834
445
446
  });
446
447
  await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 2', async () => {
447
448
  await modelerHomePage.clickProjectBreadcrumb();
448
449
  await modelerHomePage.clickDiagramTypeDropdown();
449
450
  await modelerHomePage.clickBpmnTemplateOption();
450
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
451
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, constants_1.REST_MOCK_URL, 'noAuth', 'body', { page, modelerHomePage });
451
452
  await modelerCreatePage.runProcessInstance('', tenantName2);
452
453
  });
453
454
  await SM_8_8_1.test.step('View Process Instances in Operate, and Assert Process Complete in Operate with Correct Tenant', async () => {
@@ -8,6 +8,7 @@ const optimizeReportUtils_1 = require("../../pages/SM-8.8/optimizeReportUtils");
8
8
  const loggingUtils_1 = require("../../utils/loggingUtils");
9
9
  const resetSession_1 = require("../../utils/resetSession");
10
10
  const KeycloakUtils_1 = require("../../pages/SM-8.8/KeycloakUtils");
11
+ const constants_1 = require("../../utils/constants");
11
12
  SM_8_8_1.test.describe.parallel('Smoke Tests', () => {
12
13
  SM_8_8_1.test.beforeEach(async ({ navigationPage, managementIdentityPage, managementIdentityTenantPage, keycloakLoginPage, keycloakAdminPage, page, browser, loginPage, ocIdentityHomePage, ocIdentityRolesPage, }, testInfo) => {
13
14
  if (process.env.IS_MIGRATION === 'true') {
@@ -147,7 +148,7 @@ SM_8_8_1.test.describe.parallel('Smoke Tests', () => {
147
148
  await modelerHomePage.clickBpmnTemplateOption();
148
149
  });
149
150
  await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
150
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
151
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', {
151
152
  resultVariable: 'result',
152
153
  basicAuthCredentials: { username: 'username', password: 'password' },
153
154
  page,
@@ -5,6 +5,7 @@ const SM_8_9_1 = require("../../fixtures/SM-8.9");
5
5
  const _setup_1 = require("../../test-setup.js");
6
6
  const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
7
7
  const sleep_1 = require("../../utils/sleep");
8
+ const constants_1 = require("../../utils/constants");
8
9
  const mtTenant = process.env.IS_MT === 'true' ? '<default>' : '';
9
10
  SM_8_9_1.test.describe.configure({ mode: 'parallel' });
10
11
  SM_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
@@ -25,7 +26,7 @@ SM_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
25
26
  await modelerHomePage.clickBpmnTemplateOption();
26
27
  });
27
28
  await SM_8_9_1.test.step('Create BPMN Diagram with REST Connector and Start Process Instance', async () => {
28
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
29
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
29
30
  await modelerCreatePage.runProcessInstance('', mtTenant);
30
31
  await (0, sleep_1.sleep)(20000);
31
32
  });
@@ -36,8 +37,8 @@ SM_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
36
37
  const result = await operateProcessInstancePage.assertEitherIncidentOrCompletedIconVisible();
37
38
  (0, test_1.expect)(result).toBe('completed');
38
39
  await operateProcessInstancePage.assertVariablesListVisible();
39
- await operateProcessInstancePage.connectorResultVariableName('status');
40
- await operateProcessInstancePage.assertProcessVariableContainsText('status', '"Awesome!"');
40
+ await operateProcessInstancePage.connectorResultVariableName('message');
41
+ await operateProcessInstancePage.assertProcessVariableContainsText('message', '"Awesome!"');
41
42
  });
42
43
  });
43
44
  // Skipped due to connectors bug #7716: https://github.com/camunda/connectors/issues/7716
@@ -51,9 +52,8 @@ SM_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
51
52
  await modelerHomePage.clickBpmnTemplateOption();
52
53
  });
53
54
  await SM_8_9_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
54
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}');
55
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'bearer', '{message:response.body.message}');
55
56
  await modelerCreatePage.runProcessInstance('', mtTenant);
56
- await (0, _setup_1.performBearerTokenAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'thisisabearertoken');
57
57
  await (0, sleep_1.sleep)(20000);
58
58
  });
59
59
  await SM_8_9_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
@@ -158,7 +158,7 @@ SM_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
158
158
  await modelerHomePage.clickBpmnTemplateOption();
159
159
  });
160
160
  await SM_8_9_1.test.step('Create BPMN Diagram with REST Connector using secrets and Start Process Instance', async () => {
161
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', 'result', { username: '{{secrets.username}}', password: '{{secrets.password}}' });
161
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', 'result', { username: '{{secrets.username}}', password: '{{secrets.password}}' });
162
162
  await modelerCreatePage.runProcessInstance('', mtTenant);
163
163
  await (0, sleep_1.sleep)(20000);
164
164
  });
@@ -7,6 +7,7 @@ const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
7
7
  const resetSession_1 = require("../../utils/resetSession");
8
8
  const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
9
9
  const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
10
+ const constants_1 = require("../../utils/constants");
10
11
  const demoUserEmail = process.env.DEMO_USER_EMAIL || 'demo@example.org';
11
12
  const demoUserDisplayText = `Demo User${demoUserEmail}`;
12
13
  if (process.env.IS_MT === 'true') {
@@ -157,7 +158,7 @@ if (process.env.IS_MT === 'true') {
157
158
  await modelerHomePage.clickBpmnTemplateOption();
158
159
  });
159
160
  await SM_8_9_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
160
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
161
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
161
162
  await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
162
163
  });
163
164
  await SM_8_9_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
@@ -300,7 +301,7 @@ if (process.env.IS_MT === 'true') {
300
301
  await modelerHomePage.clickBpmnTemplateOption();
301
302
  });
302
303
  await SM_8_9_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
303
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
304
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_URL, 'noAuth', 'body');
304
305
  await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
305
306
  });
306
307
  await SM_8_9_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
@@ -432,14 +433,14 @@ if (process.env.IS_MT === 'true') {
432
433
  await modelerHomePage.clickBpmnTemplateOption();
433
434
  });
434
435
  await SM_8_9_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 1', async () => {
435
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
436
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, constants_1.REST_MOCK_URL, 'noAuth', 'body');
436
437
  await modelerCreatePage.runProcessInstance('', tenantName1); //Identity bug https://github.com/camunda/camunda/issues/35834
437
438
  });
438
439
  await SM_8_9_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 2', async () => {
439
440
  await modelerHomePage.clickProjectBreadcrumb();
440
441
  await modelerHomePage.clickDiagramTypeDropdown();
441
442
  await modelerHomePage.clickBpmnTemplateOption();
442
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body');
443
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, constants_1.REST_MOCK_URL, 'noAuth', 'body');
443
444
  await modelerCreatePage.runProcessInstance('', tenantName2);
444
445
  });
445
446
  await SM_8_9_1.test.step('View Process Instances in Operate, and Assert Process Complete in Operate with Correct Tenant', async () => {
@@ -10,6 +10,7 @@ const resetSession_1 = require("../../utils/resetSession");
10
10
  const KeycloakUtils_1 = require("../../pages/SM-8.9/KeycloakUtils");
11
11
  const sleep_1 = require("../../utils/sleep");
12
12
  const env_1 = require("../../utils/env");
13
+ const constants_1 = require("../../utils/constants");
13
14
  SM_8_9_1.test.describe.parallel('Smoke Tests', () => {
14
15
  SM_8_9_1.test.beforeEach(async ({ navigationPage, managementIdentityPage, managementIdentityTenantPage, keycloakLoginPage, keycloakAdminPage, page, browser, loginPage, ocIdentityHomePage, ocIdentityRolesPage, }, testInfo) => {
15
16
  if (process.env.IS_MIGRATION === 'true') {
@@ -154,7 +155,7 @@ SM_8_9_1.test.describe.parallel('Smoke Tests', () => {
154
155
  await modelerHomePage.clickBpmnTemplateOption();
155
156
  });
156
157
  await SM_8_9_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
157
- await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
158
+ await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, constants_1.REST_MOCK_BASIC_AUTH_URL, 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
158
159
  await modelerCreatePage.runProcessInstance();
159
160
  await (0, sleep_1.sleep)(3000);
160
161
  });
@@ -44,8 +44,8 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
44
44
  await operateProcessesPage.clickProcessCompletedCheckbox();
45
45
  await operateProcessesPage.clickProcessInstanceLink('REST_Connector_No_Auth_Process');
46
46
  await operateProcessInstancePage.completedIconAssertion();
47
- await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.statusVariable, 'Status variable');
48
- await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.statusVariable.getByText('"Awesome!"'), 'Status variable text');
47
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.messageVariable, 'Message variable');
48
+ await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, operateProcessInstancePage.messageVariable.getByText('"Awesome!"'), 'Message variable text');
49
49
  });
50
50
  });
51
51
  // Skipped due to bug #7984: https://github.com/camunda/connectors/issues/7984