@camunda/e2e-test-suite 0.0.1302 → 0.0.1303

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.
@@ -104,7 +104,18 @@ _8_7_1.test.describe('AWS Cluster User Flows Test', () => {
104
104
  'simple_pdf.pdf',
105
105
  'camunda.png',
106
106
  ]);
107
+ // Completing the task uploads the picked files in one batch request.
108
+ // Assert every file was persisted so a dropped document fails here with
109
+ // the real cause instead of as a missing preview after the reload.
110
+ const documentsUploaded = page.waitForResponse((response) => response.url().includes('/v2/documents/batch') &&
111
+ response.request().method() === 'POST', { timeout: 120000 });
107
112
  await taskDetailsPage.clickCompleteTaskButton();
113
+ const uploadResult = await (await documentsUploaded).json();
114
+ (0, test_1.expect)(uploadResult.createdDocuments.map((document) => document.metadata.fileName), `Document batch upload persisted only part of the selected files: ${JSON.stringify(uploadResult)}`).toEqual(test_1.expect.arrayContaining([
115
+ 'simple_text.txt',
116
+ 'simple_pdf.pdf',
117
+ 'camunda.png',
118
+ ]));
108
119
  await (0, sleep_1.sleep)(20000);
109
120
  await page.reload();
110
121
  await taskPanelPage.openTask(processName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1302",
3
+ "version": "0.0.1303",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",