File tree Expand file tree Collapse file tree 3 files changed +96
-1
lines changed Expand file tree Collapse file tree 3 files changed +96
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ module.exports = (function () {
62
62
return compiled ( {
63
63
status : step . result ? step . result . status : '' ,
64
64
errorDetails : step . result ? toHtmlEntities ( step . result . error_message ) : '' ,
65
- name : step . keyword + step . name
65
+ name : step . keyword + step . name ,
66
+ dataTable : step . rows ? step . rows : ''
66
67
} ) ;
67
68
}
68
69
Original file line number Diff line number Diff line change 1
1
< div class ="step <%= status %> ">
2
2
< %= name %>
3
+ < % if (dataTable) { %>
4
+ < table class ="table ">
5
+ < % for(var row in dataTable) { %>
6
+ < tr >
7
+ < % for(var cell in dataTable[row].cells) { %>
8
+ < % if (Number(row) === 0) { %>
9
+ < th > < %= dataTable[row].cells[cell] %> </ th >
10
+ < % } else { %>
11
+ < td > < %= dataTable[row].cells[cell] %> </ td >
12
+ < % } %>
13
+ < % } %>
14
+ </ tr >
15
+ < % } %>
16
+ </ table >
17
+ < % } %>
3
18
< % if (errorDetails) { %>
4
19
< div class ="error-details ">
5
20
< blockquote >
Original file line number Diff line number Diff line change @@ -60,14 +60,17 @@ <h2><i class="fa fa-magic"></i> Feature:</h2>
60
60
</ div > < div class ="step passed ">
61
61
Given I login as teacher
62
62
63
+
63
64
</ div > < div class ="step passed ">
64
65
Then I log out
65
66
67
+
66
68
</ div > </ div > < div class ="scenario-container "> < div class ="scenario failed ">
67
69
Scenario: Log in as a student
68
70
</ div > < div class ="step failed ">
69
71
Given I login as student
70
72
73
+
71
74
< div class ="error-details ">
72
75
< blockquote >
73
76
< pre >
@@ -127,17 +130,93 @@ <h2><i class="fa fa-magic"></i> Feature:</h2>
127
130
</ div > < div class ="step skipped ">
128
131
Then I log out
129
132
133
+
130
134
</ div > </ div > < div class ="scenario-container "> < div class ="scenario passed ">
131
135
Scenario: Set and verify bookmark tool
132
136
</ div > < div class ="step passed ">
133
137
Given I login as teacher
134
138
139
+
135
140
</ div > < div class ="step passed ">
136
141
When I set bookmark tool for student 1 on:
137
142
143
+ < table class ="table ">
144
+
145
+ < tr >
146
+
147
+
148
+ < th > level</ th >
149
+
150
+
151
+
152
+ < th > unit</ th >
153
+
154
+
155
+
156
+ < th > lesson</ th >
157
+
158
+
159
+ </ tr >
160
+
161
+ < tr >
162
+
163
+
164
+ < td > 2</ td >
165
+
166
+
167
+
168
+ < td > 5</ td >
169
+
170
+
171
+
172
+ < td > 2</ td >
173
+
174
+
175
+ </ tr >
176
+
177
+ </ table >
178
+
179
+
138
180
</ div > < div class ="step passed ">
139
181
Then I should see bookmark set on:
140
182
183
+ < table class ="table ">
184
+
185
+ < tr >
186
+
187
+
188
+ < th > level</ th >
189
+
190
+
191
+
192
+ < th > unit</ th >
193
+
194
+
195
+
196
+ < th > lesson</ th >
197
+
198
+
199
+ </ tr >
200
+
201
+ < tr >
202
+
203
+
204
+ < td > 2</ td >
205
+
206
+
207
+
208
+ < td > 5</ td >
209
+
210
+
211
+
212
+ < td > 2</ td >
213
+
214
+
215
+ </ tr >
216
+
217
+ </ table >
218
+
219
+
141
220
</ div > </ div >
142
221
143
222
< div class ="scenario-chart ">
You can’t perform that action at this time.
0 commit comments