@camunda/e2e-test-suite 0.0.1333 → 0.0.1334
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.
|
@@ -137,8 +137,17 @@ api_1.test.describe('Resource deletion', () => {
|
|
|
137
137
|
}
|
|
138
138
|
// The test is the deletion, so cleanup has nothing left to do.
|
|
139
139
|
resources.forget('resource', key);
|
|
140
|
+
// From 8.10 a deleted definition stays readable with `state: DELETED`
|
|
141
|
+
// until a history-deletion batch operation removes it from secondary
|
|
142
|
+
// storage. That removal waits for every instance of the definition to be
|
|
143
|
+
// purged first and has no upper bound, so DELETED is the proof here.
|
|
140
144
|
await (0, eventually_1.eventually)(async () => {
|
|
141
145
|
const lookup = await api.get('/process-definitions/{processDefinitionKey}', { params: { processDefinitionKey: key } });
|
|
146
|
+
if ((0, config_1.atLeastVersion)('8.10') && lookup.status() === 200) {
|
|
147
|
+
const definition = (await lookup.json());
|
|
148
|
+
(0, test_1.expect)(definition.state).toBe('DELETED');
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
142
151
|
await (0, assertions_1.assertNotFound)(lookup);
|
|
143
152
|
});
|
|
144
153
|
});
|