@camunda/e2e-test-suite 0.0.1348 → 0.0.1349

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.
@@ -177,8 +177,13 @@ api_1.test.describe('User tasks', () => {
177
177
  (0, api_1.test)('searches the variables visible to a task', async ({ api, resources }) => {
178
178
  const { userTaskKey, processInstanceKey } = await startUserTask(api, resources);
179
179
  resources.track('processInstance', processInstanceKey);
180
- const response = await api.post('/user-tasks/{userTaskKey}/variables/search', { params: { userTaskKey }, body: { filter: {} } });
181
- await (0, assertions_1.assertPaginated)(response);
180
+ // `startUserTask` only waits for the user-task index. This endpoint also
181
+ // resolves the task's element instance, which lands in a separate index, so
182
+ // a user task that is already searchable can still 404 here.
183
+ await (0, eventually_1.eventually)(async () => {
184
+ const response = await api.post('/user-tasks/{userTaskKey}/variables/search', { params: { userTaskKey }, body: { filter: {} } });
185
+ await (0, assertions_1.assertPaginated)(response);
186
+ });
182
187
  });
183
188
  (0, api_1.test)('reports no linked form for a task without one', async ({ api, resources, }) => {
184
189
  const { userTaskKey, processInstanceKey } = await startUserTask(api, resources);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1348",
3
+ "version": "0.0.1349",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",