-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmatrix.hbs
87 lines (87 loc) · 2.03 KB
/
matrix.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<section class="informative" id="{{matrix.title}}">
<!-- the title of the test suite is a State abbreviation -->
<h2>{{getState matrix.title}}</h2>
<style>
.no-wrap {
white-space: nowrap;
}
td.optional {
background-color: #b9b7b7;
}
.text-right {
text-align: right;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.qr-code {
margin-left: 25px;
}
.row {
display: flex;
justify-content: space-between;
align-items: center;
}
.small-font {
font-size: 0.75rem;
}
pre, code.hljs{
overflow: auto;
}
</style>
<div class="row">
<table class="simple">
<thead>
<th width="20%">
<div class="text-right small-font">
{{matrix.columnLabel}} ⇒
</div>
<div class="text-left small-font">
<span>⇓</span><span>{{matrix.rowLabel}}</span>
</div>
</th>
{{#each matrix.columns}}
<th class="no-wrap small-font">{{this}}</th>
{{/each}}
</thead>
<tbody>
{{#each matrix.rows}}
<tr>
<!--This is the name of the test-->
<td class="no-wrap small-font">{{id}}</td>
<!--These contain if the test passed, failed, or was skipped-->
{{#each cells}}
<td class="{{state}} {{getOptional optional}}">{{getStatusMark state}}</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
<div class="qr-code">
{{#if matrix.images}}
{{#each matrix.images}}
<img src={{{this.src}}} />
{{#each this.meta}}
<div class="text-center small-font">
{{this}}
</div>
{{/each}}
{{/each}}
{{/if}}
</div>
</div>
<div>
<div>
{{#if matrix.reportData}}
{{#each matrix.reportData}}
<pre class="example small-font" style="white-space: break-spaces; word-break: break-all;" title="{{this.label}}">
{{{this.data}}}
</pre>
{{/each}}
{{/if}}
</div>
</div>
</section>