@camunda/e2e-test-suite 0.0.1347 → 0.0.1348

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
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.1348",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",