<%- stepIndex + 1 %>.
<% if (stepType === "expectations") { %>
<% if (step.matcher === 'toLookAs') { %>
Expectation <%- _.upperCase(step.status) %>: <%- step.message %>
<% } else { %>
Expectation <%- _.upperCase(step.status) %>: <%- step.shortMessage %>
<% } %>
<% } %>
<% if (stepType === "actions") { %>
Execute '<%- step.name %>' on element with
<% if (step.elementLocator) { %> locator '<%- step.elementLocator %>' and<% } %> ID '<%- step.elementId %>'
<% if (step.value) { %> with value '<%- step.value %>' <% } %>
<% var log = _.find(spec.logs, {stepIndex: stepIndex}); %>
<% if (log) { %>Log: <%- log.text %>
<% } %>
<% } %>
<% if (step.status === "failed" && step.matcher === 'toLookAs' && !!step.details) { %>
Current Image
Reference Image
Diff Image
<% } else if (step.screenshot) { %>
<% } %>
<% var log = _.find(spec.logs, {stepIndex: stepIndex}); %>
<% if (log) { %>Log:
<%- log.text %><% } %>
<% if (step.status === "failed") { %>Error stack:
<%- step.stack %><% } %>