@camunda/e2e-test-suite 0.0.1256 → 0.0.1257

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 assertions_1 = require("../../../../utils/api/assertions");
6
6
  const deployments_1 = require("../../../../utils/api/deployments");
7
7
  const bpmn_1 = require("../../../../utils/api/bpmn");
8
8
  const eventually_1 = require("../../../../utils/api/eventually");
9
+ const config_1 = require("../../../../utils/api/config");
9
10
  const capabilities_1 = require("../../../../utils/api/capabilities");
10
11
  const keys_1 = require("../../../../utils/api/keys");
11
12
  api_1.test.describe('Deployments', () => {
@@ -124,11 +125,16 @@ api_1.test.describe('Resource deletion', () => {
124
125
  body: {},
125
126
  tenant: 'none',
126
127
  });
127
- // The endpoint answers 200 with a `DeleteResourceResponse` body naming
128
- // the deleted resource (and the batch operation that clears its history),
129
- // not a bare 204.
130
- const deletion = (await (0, assertions_1.assertOk)(response));
131
- (0, test_1.expect)(String(deletion.resourceKey)).toBe(key);
128
+ // From 8.9 the endpoint answers 200 with a `DeleteResourceResponse` body
129
+ // naming the deleted resource (and the batch operation that clears its
130
+ // history). 8.8 has no response body and answers a bare 204.
131
+ if ((0, config_1.atLeastVersion)('8.9')) {
132
+ const deletion = (await (0, assertions_1.assertOk)(response));
133
+ (0, test_1.expect)(String(deletion.resourceKey)).toBe(key);
134
+ }
135
+ else {
136
+ await (0, assertions_1.assertNoContent)(response);
137
+ }
132
138
  // The test is the deletion, so cleanup has nothing left to do.
133
139
  resources.forget('resource', key);
134
140
  await (0, eventually_1.eventually)(async () => {
@@ -135,7 +135,9 @@ api_1.test.describe('Groups', () => {
135
135
  (0, api_1.test)('rejects updating an absent group', async ({ api }) => {
136
136
  const response = await api.put('/groups/{groupId}', {
137
137
  params: { groupId: (0, bpmn_1.uniqueId)('absent-group') },
138
- body: { name: 'does not exist' },
138
+ // 8.8 requires `description` on update and rejects the body with 400
139
+ // before the group is looked up.
140
+ body: { name: 'does not exist', description: 'does not exist' },
139
141
  tenant: 'none',
140
142
  });
141
143
  await (0, assertions_1.assertNotFound)(response);
@@ -137,7 +137,10 @@ api_1.test.describe('Process instances', () => {
137
137
  const key = instance.processInstanceKey;
138
138
  resources.track('processInstance', key);
139
139
  await (0, eventually_1.eventually)(async () => {
140
- const response = await api.post('/process-instances/{processInstanceKey}/incidents/search', { params: { processInstanceKey: key }, body: { filter: {} } });
140
+ const response = await api.post('/process-instances/{processInstanceKey}/incidents/search',
141
+ // 8.8's per-instance incident query has no `filter` property and
142
+ // rejects one with 400, so none is sent.
143
+ { params: { processInstanceKey: key }, body: {} });
141
144
  await (0, assertions_1.assertPaginated)(response, { exactItems: 0 });
142
145
  });
143
146
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1256",
3
+ "version": "0.0.1257",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",