@camunda/e2e-test-suite 0.0.1256 → 0.0.1258
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.
- package/dist/pages/BrowseAllConnectorMarketplacePage.js +7 -6
- package/dist/tests/api/v2/deployment/deployment-api-tests.spec.js +11 -5
- package/dist/tests/api/v2/identity/group-api-tests.spec.js +3 -1
- package/dist/tests/api/v2/process-instance/process-instance-api-tests.spec.js +4 -1
- package/package.json +1 -1
|
@@ -66,25 +66,25 @@ class BrowseAllConnectorMarketplacePage {
|
|
|
66
66
|
continue;
|
|
67
67
|
}
|
|
68
68
|
await addButton.click({ timeout: 60000 });
|
|
69
|
-
if (await this.completeImportReviewIfNecessary(retryButton)) {
|
|
69
|
+
if (await this.completeImportReviewIfNecessary(retryButton, addedStatus)) {
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
72
|
if (attempt === 3) {
|
|
73
73
|
throw new Error('Browse All could not import the Marketplace connector after 3 attempts.');
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
await this.availableElementsHeading
|
|
77
|
-
|
|
78
|
-
timeout: 120000
|
|
79
|
-
});
|
|
76
|
+
await this.availableElementsHeading
|
|
77
|
+
.or(addedStatus)
|
|
78
|
+
.waitFor({ state: 'visible', timeout: 120000 });
|
|
80
79
|
await browseAllDialog
|
|
81
80
|
.getByRole('button', { name: 'Close' })
|
|
82
81
|
.click({ timeout: 60000 });
|
|
83
82
|
await browseAllDialog.waitFor({ state: 'hidden', timeout: 60000 });
|
|
84
83
|
}
|
|
85
|
-
async completeImportReviewIfNecessary(retryButton) {
|
|
84
|
+
async completeImportReviewIfNecessary(retryButton, addedStatus) {
|
|
86
85
|
await this.importModal
|
|
87
86
|
.or(this.availableElementsHeading)
|
|
87
|
+
.or(addedStatus)
|
|
88
88
|
.or(retryButton)
|
|
89
89
|
.waitFor({ state: 'visible', timeout: 120000 });
|
|
90
90
|
if (await retryButton.isVisible()) {
|
|
@@ -107,6 +107,7 @@ class BrowseAllConnectorMarketplacePage {
|
|
|
107
107
|
}
|
|
108
108
|
await this.importModal.waitFor({ state: 'hidden', timeout: 120000 });
|
|
109
109
|
await this.availableElementsHeading
|
|
110
|
+
.or(addedStatus)
|
|
110
111
|
.or(retryButton)
|
|
111
112
|
.waitFor({ state: 'visible', timeout: 120000 });
|
|
112
113
|
return !(await retryButton.isVisible());
|
|
@@ -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
|
-
//
|
|
128
|
-
// the deleted resource (and the batch operation that clears its
|
|
129
|
-
//
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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',
|
|
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
|
});
|