@camunda/e2e-test-suite 0.0.71 → 0.0.73

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.
@@ -6,81 +6,75 @@ const sleep_1 = require("../../utils/sleep");
6
6
  const zeebeClient_1 = require("../../utils/zeebeClient");
7
7
  const test_1 = require("@playwright/test");
8
8
  const constants_1 = require("../../utils/constants");
9
- c8Run_8_9_1.test.beforeAll(async () => {
10
- await Promise.all([
11
- (0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
12
- (0, zeebeClient_1.deploy)('./resources/New Form.form'),
13
- (0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
14
- (0, zeebeClient_1.deploy)('./resources/Start_Form_Process.bpmn'),
15
- ]);
16
- await Promise.all([
17
- (0, zeebeClient_1.createInstances)('Form_User_Task', 1, 3),
18
- (0, zeebeClient_1.createInstances)('Start_Form_Process', 1, 1),
19
- ]);
20
- await (0, sleep_1.sleep)(10000);
21
- });
22
- c8Run_8_9_1.test.describe('API tests for v1', () => {
23
- const auth = Buffer.from(`demo:demo`).toString('base64');
24
- const requestHeaders = {
25
- headers: {
26
- 'Content-Type': 'application/json',
27
- Authorization: `Basic ${auth}`,
28
- },
29
- };
30
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
31
- c8Run_8_9_1.test.skip('Search for process definitions @tasklistV2', async ({ request }) => {
32
- const processDefinitionsList = await request.post('/v1/process-definitions/search', requestHeaders);
33
- await (0, apiHelpers_1.assertResponseStatus)(processDefinitionsList, 200);
34
- });
35
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
36
- c8Run_8_9_1.test.skip('Get a process definition via key @tasklistV2', async ({ request, }) => {
37
- await (0, test_1.expect)(async () => {
38
- const searchProcessDefinitions = await request.post(`/v1/process-definitions/search`, requestHeaders);
39
- const processKey = await searchProcessDefinitions.json();
40
- (0, test_1.expect)(processKey.items.length).toBeGreaterThan(0);
41
- const response = await request.get(`/v1/process-definitions/` + processKey.items[0].key, requestHeaders);
42
- await (0, apiHelpers_1.assertResponseStatus)(response, 200);
43
- }).toPass(constants_1.defaultAssertionOptions);
44
- });
45
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
46
- c8Run_8_9_1.test.skip('Search for process instances @tasklistV2', async ({ request }) => {
47
- const processInstancesList = await request.post('/v1/process-instances/search', requestHeaders);
48
- await (0, apiHelpers_1.assertResponseStatus)(processInstancesList, 200);
49
- });
50
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
51
- c8Run_8_9_1.test.skip('Search for flownode-instances @tasklistV2', async ({ request }) => {
52
- const flowNodeInstancesList = await request.post('/v1/flownode-instances/search', requestHeaders);
53
- await (0, apiHelpers_1.assertResponseStatus)(flowNodeInstancesList, 200);
54
- });
55
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
56
- c8Run_8_9_1.test.skip('Search for variables for process instances @tasklistV2', async ({ request, }) => {
57
- const variablesInstancesList = await request.post('/v1/variables/search', requestHeaders);
58
- await (0, apiHelpers_1.assertResponseStatus)(variablesInstancesList, 200);
59
- });
60
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
61
- c8Run_8_9_1.test.skip('Search for incidents @tasklistV2', async ({ request }) => {
62
- const incidentsList = await request.post('/v1/incidents/search', requestHeaders);
63
- await (0, apiHelpers_1.assertResponseStatus)(incidentsList, 200);
64
- });
65
- (0, c8Run_8_9_1.test)('Get connectors status @tasklistV2', async ({ request }) => {
9
+ if (process.env.DATABASE != 'RDBMS') {
10
+ c8Run_8_9_1.test.beforeAll(async () => {
11
+ await Promise.all([
12
+ (0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
13
+ (0, zeebeClient_1.deploy)('./resources/New Form.form'),
14
+ (0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
15
+ (0, zeebeClient_1.deploy)('./resources/Start_Form_Process.bpmn'),
16
+ ]);
17
+ await Promise.all([
18
+ (0, zeebeClient_1.createInstances)('Form_User_Task', 1, 3),
19
+ (0, zeebeClient_1.createInstances)('Start_Form_Process', 1, 1),
20
+ ]);
66
21
  await (0, sleep_1.sleep)(10000);
67
- const connectorsStatus = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/actuator/health', requestHeaders);
68
- await (0, apiHelpers_1.assertResponseStatus)(connectorsStatus, 200);
69
- });
70
- (0, c8Run_8_9_1.test)('Get a inbound connectors list @tasklistV2', async ({ request }) => {
71
- const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound', requestHeaders);
72
- await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
73
22
  });
74
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
75
- c8Run_8_9_1.test.skip('Search for tasks', async ({ request }) => {
76
- const taskList = await request.post('/v1/tasks/search', requestHeaders);
77
- await (0, apiHelpers_1.assertResponseStatus)(taskList, 200);
78
- });
79
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
80
- c8Run_8_9_1.test.skip('Get a task via ID', async ({ request }) => {
81
- const searchTasks = await request.post(`/v1/tasks/search`, requestHeaders);
82
- const taskID = await searchTasks.json();
83
- const response = await request.get('/v1/tasks/' + taskID[0].id, requestHeaders);
84
- await (0, apiHelpers_1.assertResponseStatus)(response, 200);
23
+ c8Run_8_9_1.test.describe('API tests for v1', () => {
24
+ const auth = Buffer.from(`demo:demo`).toString('base64');
25
+ const requestHeaders = {
26
+ headers: {
27
+ 'Content-Type': 'application/json',
28
+ Authorization: `Basic ${auth}`,
29
+ },
30
+ };
31
+ (0, c8Run_8_9_1.test)('Search for process definitions @tasklistV2', async ({ request }) => {
32
+ const processDefinitionsList = await request.post('/v1/process-definitions/search', requestHeaders);
33
+ await (0, apiHelpers_1.assertResponseStatus)(processDefinitionsList, 200);
34
+ });
35
+ (0, c8Run_8_9_1.test)('Get a process definition via key @tasklistV2', async ({ request }) => {
36
+ await (0, test_1.expect)(async () => {
37
+ const searchProcessDefinitions = await request.post(`/v1/process-definitions/search`, requestHeaders);
38
+ const processKey = await searchProcessDefinitions.json();
39
+ (0, test_1.expect)(processKey.items.length).toBeGreaterThan(0);
40
+ const response = await request.get(`/v1/process-definitions/` + processKey.items[0].key, requestHeaders);
41
+ await (0, apiHelpers_1.assertResponseStatus)(response, 200);
42
+ }).toPass(constants_1.defaultAssertionOptions);
43
+ });
44
+ (0, c8Run_8_9_1.test)('Search for process instances @tasklistV2', async ({ request }) => {
45
+ const processInstancesList = await request.post('/v1/process-instances/search', requestHeaders);
46
+ await (0, apiHelpers_1.assertResponseStatus)(processInstancesList, 200);
47
+ });
48
+ (0, c8Run_8_9_1.test)('Search for flownode-instances @tasklistV2', async ({ request }) => {
49
+ const flowNodeInstancesList = await request.post('/v1/flownode-instances/search', requestHeaders);
50
+ await (0, apiHelpers_1.assertResponseStatus)(flowNodeInstancesList, 200);
51
+ });
52
+ (0, c8Run_8_9_1.test)('Search for variables for process instances @tasklistV2', async ({ request, }) => {
53
+ const variablesInstancesList = await request.post('/v1/variables/search', requestHeaders);
54
+ await (0, apiHelpers_1.assertResponseStatus)(variablesInstancesList, 200);
55
+ });
56
+ (0, c8Run_8_9_1.test)('Search for incidents @tasklistV2', async ({ request }) => {
57
+ const incidentsList = await request.post('/v1/incidents/search', requestHeaders);
58
+ await (0, apiHelpers_1.assertResponseStatus)(incidentsList, 200);
59
+ });
60
+ (0, c8Run_8_9_1.test)('Get connectors status @tasklistV2', async ({ request }) => {
61
+ await (0, sleep_1.sleep)(10000);
62
+ const connectorsStatus = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/actuator/health', requestHeaders);
63
+ await (0, apiHelpers_1.assertResponseStatus)(connectorsStatus, 200);
64
+ });
65
+ (0, c8Run_8_9_1.test)('Get a inbound connectors list @tasklistV2', async ({ request }) => {
66
+ const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound', requestHeaders);
67
+ await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
68
+ });
69
+ (0, c8Run_8_9_1.test)('Search for tasks', async ({ request }) => {
70
+ const taskList = await request.post('/v1/tasks/search', requestHeaders);
71
+ await (0, apiHelpers_1.assertResponseStatus)(taskList, 200);
72
+ });
73
+ (0, c8Run_8_9_1.test)('Get a task via ID', async ({ request }) => {
74
+ const searchTasks = await request.post(`/v1/tasks/search`, requestHeaders);
75
+ const taskID = await searchTasks.json();
76
+ const response = await request.get('/v1/tasks/' + taskID[0].id, requestHeaders);
77
+ await (0, apiHelpers_1.assertResponseStatus)(response, 200);
78
+ });
85
79
  });
86
- });
80
+ }
@@ -47,8 +47,7 @@ c8Run_8_9_1.test.describe('API tests for V2 @tasklistV2', () => {
47
47
  const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound');
48
48
  await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
49
49
  });
50
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
51
- c8Run_8_9_1.test.skip('Search for tasks', async ({ request }) => {
50
+ (0, c8Run_8_9_1.test)('Search for tasks', async ({ request }) => {
52
51
  const taskList = await request.post('/v2/user-tasks/search');
53
52
  (0, test_1.expect)(taskList.status()).toBe(200);
54
53
  });
@@ -27,8 +27,7 @@ c8Run_8_9_1.test.beforeEach(async ({ page, operateLoginPage, operateHomePage })
27
27
  await operateLoginPage.login('demo', 'demo');
28
28
  await operateHomePage.operateBannerIsVisible();
29
29
  });
30
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
31
- c8Run_8_9_1.test.describe.skip('Connectors User Flow Tests @tasklistV2', () => {
30
+ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
32
31
  c8Run_8_9_1.test.afterEach(async ({ page }, testInfo) => {
33
32
  await (0, _setup_1.captureScreenshot)(page, testInfo);
34
33
  await (0, _setup_1.captureFailureVideo)(page, testInfo);
@@ -28,8 +28,7 @@ c8Run_8_9_1.test.beforeAll(async () => {
28
28
  ]);
29
29
  await (0, sleep_1.sleep)(5000);
30
30
  });
31
- //Skipped due to bug 42682: https://github.com/camunda/camunda/issues/42682
32
- c8Run_8_9_1.test.describe.skip('HTO User Flow Tests', () => {
31
+ c8Run_8_9_1.test.describe('HTO User Flow Tests', () => {
33
32
  c8Run_8_9_1.test.beforeEach(async ({ page, taskListLoginPage, taskPanelPage }) => {
34
33
  await (0, UtilitiesPage_1.navigateToApp)(page, 'tasklist');
35
34
  await taskListLoginPage.login('demo', 'demo');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",