@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.
- package/dist/test-setup.js +7 -1
- package/package.json +1 -1
package/dist/test-setup.js
CHANGED
|
@@ -102,7 +102,13 @@ async function captureFailureVideo(page, testInfo) {
|
|
|
102
102
|
if (testInfo.status === 'passed' || testInfo.status === 'skipped') {
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
|
|
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
|