File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,15 @@ module.exports = (function () {
29
29
} ) ;
30
30
}
31
31
32
+ /**
33
+ * Checks if the step is an empty After step
34
+ * @param step - object which contains step data
35
+ * @returns boolean
36
+ */
37
+ function isEmptyAfterStep ( step ) {
38
+ return step . keyword . trim ( ) === 'After' && step . name === undefined ;
39
+ }
40
+
32
41
/**
33
42
* Checks if the step is an After step containing a screenshot
34
43
* @param step - object which contains step data
@@ -168,6 +177,10 @@ module.exports = (function () {
168
177
for ( var k = 0 ; k < testResults [ i ] . elements [ j ] . steps . length ; k ++ ) {
169
178
step = testResults [ i ] . elements [ j ] . steps [ k ] ;
170
179
180
+ if ( isEmptyAfterStep ( step ) ) {
181
+ continue ;
182
+ }
183
+
171
184
if ( isAfterStepWithScreenshot ( step ) ) {
172
185
stepsHtml += getAfterScreenshotStep ( step ) ;
173
186
} else {
You can’t perform that action at this time.
0 commit comments