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 @@
<%= scenario.description %>
<% _.each(scenario.steps, function(step, stepIndex) { %>
- <% if(!step.hidden || step.image || step.text || step.html || step.attachment) { %>
+ <% if(!step.hidden || step.image || step.video || step.text || step.html || step.attachment) { %>
<% if(step.result) { %>
@@ -156,7 +156,7 @@
<% if (step.json) { %>
+ Show Info
<% } %>
-
+
<% if (step.text) { %>
+ Show Info
<% } %>
@@ -169,6 +169,10 @@
+ Screenshot
<% } %>
+ <% if (step.video) { %>
+
+ Video
+ <% } %>
+
<% if (!_.isEmpty(step.attachments)) { %>
[
<% _.each(step.attachments, function(attachment, attachmentIndex) { %>
@@ -215,6 +219,16 @@
<% } %>
+ <% if (step.video) { %>
+
+ <% for( var i = 0; i < step.video.length; i++ ) { %>
+
+ <% } %>
+
+ <% } %>
+
<% if (!_.isEmpty(step.attachments)) { %>
<% _.each(step.attachments, function(attachment, attachmentIndex) { %>
diff --git a/templates/style.css b/templates/style.css
index 6e652ed8..ba46dddb 100644
--- a/templates/style.css
+++ b/templates/style.css
@@ -381,6 +381,13 @@ ul.quick-list li i {
max-width: 100%;
}
+.videoCapture{
+ width: 50%;
+ height: 50%;
+ max-height: 100%;
+ max-width: 100%;
+}
+
/* Features / Scenarios */
ul.panel_toolbox li .step {
border-radius: 50%;