Skip to content

Commit c33bae0

Browse files
committed
closes #42 toggle for spark
1 parent 71c93a0 commit c33bae0

File tree

2 files changed

+5
-5
lines changed
  • src/main/resources/com/aventstack/extentreports/view/spark

2 files changed

+5
-5
lines changed

src/main/resources/com/aventstack/extentreports/view/spark/partials/head.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#assign resourceCDN=config.getValue('resourceCDN') cdnURI="cdn.rawgit.com/extent-framework/extent-github-cdn/" csscommit="0ca45b1" jscommit="f97b667" iconcommit="d74480e">
1+
<#assign resourceCDN=config.getValue('resourceCDN') cdnURI="cdn.rawgit.com/extent-framework/extent-github-cdn/" csscommit="24cb10e" jscommit="24cb10e" iconcommit="d74480e">
22
<#if resourceCDN=="extentreports">
33
<#assign cdnURI="extentreports.com/resx" csscommit="" jscommit="" iconcommit="">
44
</#if>

src/main/resources/com/aventstack/extentreports/view/spark/tag.ftl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
<div class="test-contents d-none">
4747
<div class="info">
4848
<h4>${context.name}</h4>
49-
<#if context.passed!=0><span class='badge badge-success'>${context.passed} passed</span></#if>
50-
<#if context.failed!=0><span class='badge badge-danger'>${context.failed} failed</span></#if>
51-
<#if context.skipped!=0><span class='badge badge-warning'>${context.skipped} skipped</span></#if>
49+
<#if context.passed!=0><span status="pass" class='badge badge-success'>${context.passed} passed</span></#if>
50+
<#if context.failed!=0><span status="fail" class='badge badge-danger'>${context.failed} failed</span></#if>
51+
<#if context.skipped!=0><span status="skip" class='badge badge-warning'>${context.skipped} skipped</span></#if>
5252
</div>
5353
<table class='table table-sm mt-4'>
5454
<thead>
@@ -60,7 +60,7 @@
6060
</thead>
6161
<tbody>
6262
<#list context.testList as test>
63-
<tr>
63+
<tr class="tag-test-status" status="${test.status}">
6464
<td>
6565
<div class='status-avatar ${test.status}-bg'>
6666
<i class="fa fa-${Icon.getIcon(test.status)} text-white"></i>

0 commit comments

Comments
 (0)