From 799dc80cbbd6ac1654561fb07ec7aca535f73691 Mon Sep 17 00:00:00 2001 From: egavr Date: Thu, 20 Oct 2016 14:04:00 +0300 Subject: [PATCH] fix: do not show skipped tests in retries --- lib/reporters/html/view-model.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/reporters/html/view-model.js b/lib/reporters/html/view-model.js index e388f4d54..6956160fe 100644 --- a/lib/reporters/html/view-model.js +++ b/lib/reporters/html/view-model.js @@ -128,9 +128,12 @@ module.exports = class ViewModel { } const stateInBrowser = node.browsers[existing]; - const retry = stateInBrowser.result; + const previousResult = stateInBrowser.result; + + if (!previousResult.skipped) { + stateInBrowser.retries.push(previousResult); + } - stateInBrowser.retries.push(retry); stateInBrowser.result = testResult; }