@camunda/e2e-test-suite 0.0.314 → 0.0.315

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,6 +6,7 @@ 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");
9
10
  c8Run_8_10_1.test.beforeAll(async () => {
10
11
  await Promise.all([
11
12
  (0, zeebeClient_1.deploy)('./resources/Basic_Auth_REST_Connector.bpmn'),
@@ -72,9 +73,11 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
72
73
  (0, c8Run_8_10_1.test)('Start Event Webhook Connector No Auth User Flow', async ({ page, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
73
74
  await c8Run_8_10_1.test.step('Make Authorization Request', async () => {
74
75
  await (0, sleep_1.sleep)(300000);
75
- const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
76
- '/inbound/test-webhook-id');
77
- await (0, test_1.expect)(response.status()).toBe(200);
76
+ await (0, test_1.expect)(async () => {
77
+ const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
78
+ '/inbound/test-webhook-id');
79
+ await (0, test_1.expect)(response.status()).toBe(200);
80
+ }).toPass(constants_1.defaultAssertionOptions);
78
81
  });
79
82
  await c8Run_8_10_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
80
83
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -88,13 +91,15 @@ c8Run_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
88
91
  (0, c8Run_8_10_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
89
92
  await c8Run_8_10_1.test.step('Make Authorization Request', async () => {
90
93
  await (0, sleep_1.sleep)(60000);
91
- const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
92
- '/inbound/test-webhook-intermediate', {
93
- data: {
94
- test: 'test',
95
- },
96
- });
97
- await (0, test_1.expect)(response.status()).toBe(200);
94
+ await (0, test_1.expect)(async () => {
95
+ const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
96
+ '/inbound/test-webhook-intermediate', {
97
+ data: {
98
+ test: 'test',
99
+ },
100
+ });
101
+ await (0, test_1.expect)(response.status()).toBe(200);
102
+ }).toPass(constants_1.defaultAssertionOptions);
98
103
  });
99
104
  await c8Run_8_10_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
100
105
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -6,6 +6,7 @@ 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");
9
10
  c8Run_8_6_1.test.beforeAll(async () => {
10
11
  await Promise.all([
11
12
  (0, zeebeClient_1.deploy)('./resources/Basic_Auth_REST_Connector.bpmn'),
@@ -79,8 +80,10 @@ c8Run_8_6_1.test.describe('Connectors User Flow Tests', () => {
79
80
  (0, c8Run_8_6_1.test)('Start Event Webhook Connector No Auth User Flow', async ({ page, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
80
81
  await c8Run_8_6_1.test.step('Make Authorization Request', async () => {
81
82
  await (0, sleep_1.sleep)(300000);
82
- const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL + '/inbound/test-webhook-id');
83
- await (0, test_1.expect)(response.status()).toBe(200);
83
+ await (0, test_1.expect)(async () => {
84
+ const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL + '/inbound/test-webhook-id');
85
+ await (0, test_1.expect)(response.status()).toBe(200);
86
+ }).toPass(constants_1.defaultAssertionOptions);
84
87
  });
85
88
  await c8Run_8_6_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
86
89
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -94,13 +97,15 @@ c8Run_8_6_1.test.describe('Connectors User Flow Tests', () => {
94
97
  (0, c8Run_8_6_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ page, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
95
98
  await c8Run_8_6_1.test.step('Make Authorization Request', async () => {
96
99
  await (0, sleep_1.sleep)(60000);
97
- const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL +
98
- '/inbound/test-webhook-intermediate', {
99
- data: {
100
- test: 'test',
101
- },
102
- });
103
- await (0, test_1.expect)(response.status()).toBe(200);
100
+ await (0, test_1.expect)(async () => {
101
+ const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL +
102
+ '/inbound/test-webhook-intermediate', {
103
+ data: {
104
+ test: 'test',
105
+ },
106
+ });
107
+ await (0, test_1.expect)(response.status()).toBe(200);
108
+ }).toPass(constants_1.defaultAssertionOptions);
104
109
  });
105
110
  await c8Run_8_6_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
106
111
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -6,6 +6,7 @@ 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");
9
10
  c8Run_8_7_1.test.beforeAll(async () => {
10
11
  await Promise.all([
11
12
  (0, zeebeClient_1.deploy)('./resources/Basic_Auth_REST_Connector.bpmn'),
@@ -79,8 +80,10 @@ c8Run_8_7_1.test.describe('Connectors User Flow Tests', () => {
79
80
  (0, c8Run_8_7_1.test)('Start Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
80
81
  await c8Run_8_7_1.test.step('Make Authorization Request', async () => {
81
82
  await (0, sleep_1.sleep)(300000);
82
- const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL + '/inbound/test-webhook-id');
83
- await (0, test_1.expect)(response.status()).toBe(200);
83
+ await (0, test_1.expect)(async () => {
84
+ const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL + '/inbound/test-webhook-id');
85
+ await (0, test_1.expect)(response.status()).toBe(200);
86
+ }).toPass(constants_1.defaultAssertionOptions);
84
87
  });
85
88
  await c8Run_8_7_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
86
89
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -93,13 +96,15 @@ c8Run_8_7_1.test.describe('Connectors User Flow Tests', () => {
93
96
  (0, c8Run_8_7_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
94
97
  await c8Run_8_7_1.test.step('Make Authorization Request', async () => {
95
98
  await (0, sleep_1.sleep)(60000);
96
- const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL +
97
- '/inbound/test-webhook-intermediate', {
98
- data: {
99
- test: 'test',
100
- },
101
- });
102
- await (0, test_1.expect)(response.status()).toBe(200);
99
+ await (0, test_1.expect)(async () => {
100
+ const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL +
101
+ '/inbound/test-webhook-intermediate', {
102
+ data: {
103
+ test: 'test',
104
+ },
105
+ });
106
+ await (0, test_1.expect)(response.status()).toBe(200);
107
+ }).toPass(constants_1.defaultAssertionOptions);
103
108
  });
104
109
  await c8Run_8_7_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
105
110
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -6,6 +6,7 @@ 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");
9
10
  c8Run_8_8_1.test.beforeAll(async () => {
10
11
  await Promise.all([
11
12
  (0, zeebeClient_1.deploy)('./resources/Basic_Auth_REST_Connector.bpmn'),
@@ -88,13 +89,15 @@ c8Run_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
88
89
  (0, c8Run_8_8_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
89
90
  await c8Run_8_8_1.test.step('Make Authorization Request', async () => {
90
91
  await (0, sleep_1.sleep)(60000);
91
- const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
92
- '/inbound/test-webhook-intermediate', {
93
- data: {
94
- test: 'test',
95
- },
96
- });
97
- await (0, test_1.expect)(response.status()).toBe(200);
92
+ await (0, test_1.expect)(async () => {
93
+ const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
94
+ '/inbound/test-webhook-intermediate', {
95
+ data: {
96
+ test: 'test',
97
+ },
98
+ });
99
+ await (0, test_1.expect)(response.status()).toBe(200);
100
+ }).toPass(constants_1.defaultAssertionOptions);
98
101
  });
99
102
  await c8Run_8_8_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
100
103
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -6,6 +6,7 @@ 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");
9
10
  c8Run_8_9_1.test.beforeAll(async () => {
10
11
  await Promise.all([
11
12
  (0, zeebeClient_1.deploy)('./resources/Basic_Auth_REST_Connector.bpmn'),
@@ -72,9 +73,11 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
72
73
  (0, c8Run_8_9_1.test)('Start Event Webhook Connector No Auth User Flow', async ({ page, request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
73
74
  await c8Run_8_9_1.test.step('Make Authorization Request', async () => {
74
75
  await (0, sleep_1.sleep)(300000);
75
- const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
76
- '/inbound/test-webhook-id');
77
- await (0, test_1.expect)(response.status()).toBe(200);
76
+ await (0, test_1.expect)(async () => {
77
+ const response = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
78
+ '/inbound/test-webhook-id');
79
+ await (0, test_1.expect)(response.status()).toBe(200);
80
+ }).toPass(constants_1.defaultAssertionOptions);
78
81
  });
79
82
  await c8Run_8_9_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
80
83
  await (0, test_1.expect)(operateHomePage.processesTab).toBeVisible({ timeout: 120000 });
@@ -88,13 +91,15 @@ c8Run_8_9_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
88
91
  (0, c8Run_8_9_1.test)('Intermediate Event Webhook Connector No Auth User Flow', async ({ request, operateHomePage, operateProcessInstancePage, operateProcessesPage, }) => {
89
92
  await c8Run_8_9_1.test.step('Make Authorization Request', async () => {
90
93
  await (0, sleep_1.sleep)(60000);
91
- const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
92
- '/inbound/test-webhook-intermediate', {
93
- data: {
94
- test: 'test',
95
- },
96
- });
97
- await (0, test_1.expect)(response.status()).toBe(200);
94
+ await (0, test_1.expect)(async () => {
95
+ const response = await request.post(process.env.C8RUN_CONNECTORS_API_URL_LATEST +
96
+ '/inbound/test-webhook-intermediate', {
97
+ data: {
98
+ test: 'test',
99
+ },
100
+ });
101
+ await (0, test_1.expect)(response.status()).toBe(200);
102
+ }).toPass(constants_1.defaultAssertionOptions);
98
103
  });
99
104
  await c8Run_8_9_1.test.step('Assert Diagram Has Successfully Completed in Operate', async () => {
100
105
  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.314",
3
+ "version": "0.0.315",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",