Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Commit 799dc80

Browse files
committed
fix: do not show skipped tests in retries
1 parent 69d5ec7 commit 799dc80

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/reporters/html/view-model.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ module.exports = class ViewModel {
128128
}
129129

130130
const stateInBrowser = node.browsers[existing];
131-
const retry = stateInBrowser.result;
131+
const previousResult = stateInBrowser.result;
132+
133+
if (!previousResult.skipped) {
134+
stateInBrowser.retries.push(previousResult);
135+
}
132136

133-
stateInBrowser.retries.push(retry);
134137
stateInBrowser.result = testResult;
135138
}
136139

0 commit comments

Comments
 (0)