@camunda/e2e-test-suite 0.0.1347 → 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.
@@ -102,7 +102,13 @@ async function captureFailureVideo(page, testInfo) {
102
102
  if (testInfo.status === 'passed' || testInfo.status === 'skipped') {
103
103
  return;
104
104
  }
105
- const videoPath = `test-results/videos/video-${testInfo.title}-chromium.webm`;
105
+ // actions/upload-artifact rejects a path containing " : < > | * ? or a
106
+ // newline, and a rejected path fails the whole upload step -- and with it
107
+ // the job, however the tests themselves went. Titles carry those characters
108
+ // routinely ("DUP-01: duplicating a cluster ..."), so replace them rather
109
+ // than name the file after the raw title.
110
+ const fileSafeTitle = testInfo.title.replace(/["*:<>?|\r\n/\\]+/g, '-');
111
+ const videoPath = `test-results/videos/video-${fileSafeTitle}-chromium.webm`;
106
112
  const video = await page.video();
107
113
  if (video) {
108
114
  await page.close(); // Close explicitly to unblock saveAs
@@ -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.1347",
3
+ "version": "0.0.1349",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",