wdio-timeline-reporter
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -347,7 +347,13 @@ const events = require('events'); | ||
const screenshotDivClass = !!imagesHtml ? 'screenshots' : 'no-screenshots'; | ||
const isPendingHtml = isPending ? '<span class="tag is-warning">Skipped</span> ' : ''; | ||
const stateTag = (state) => { | ||
const map = new Map(); | ||
map.set('pending', 'is-warning') | ||
map.set('pass', 'is-success') | ||
map.set('fail', 'is-danger') | ||
return `<span class="tag ${map.get(state)}">Skipped</span> `; | ||
} | ||
suiteHtml += ` | ||
<div class="test ${state}"> | ||
<p class="subtitle is-5">${isPendingHtml}Test Name: ${title}</p> | ||
<p class="subtitle is-5">${stateTag(state)}Test Name: ${title}</p> | ||
<div class="columns"> | ||
@@ -354,0 +360,0 @@ <div class="column is-half"> |
{ | ||
"name": "wdio-timeline-reporter", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/timeline-reporter.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20237
413