diff --git a/lib/generate-report.js b/lib/generate-report.js index 4c395ca9..f05fadfe 100755 --- a/lib/generate-report.js +++ b/lib/generate-report.js @@ -445,6 +445,14 @@ function generateReport(options) { 'data:image/png;base64,' + embedding.data, ]); step.embeddings[embeddingIndex] = {}; + } else if ( + embedding.mime_type === 'video/webm' || + (embedding.media && embedding.media.type === 'video/webm') + ) { + step.video = (step.video ? step.video : []).concat([ + 'data:video/webm;base64,' + embedding.data, + ]); + step.embeddings[embeddingIndex] = {}; } else { let embeddingType = 'text/plain'; if (embedding.mime_type) { @@ -479,6 +487,7 @@ function generateReport(options) { (step.hidden && !step.text && !step.image && + !step.video && _.size(step.attachments) === 0 && step.result.status !== RESULT_STATUS.failed) ) { diff --git a/templates/components/scenarios.tmpl b/templates/components/scenarios.tmpl index f5b8f709..aa8ad518 100755 --- a/templates/components/scenarios.tmpl +++ b/templates/components/scenarios.tmpl @@ -74,7 +74,7 @@