Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/screenshot-testing/support/chai-extras.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/chai-extras.js b/tests/lib/screenshot-testing/support/chai-extras.js
index ffa6eebb6a..49e52327ee 100644
--- a/tests/lib/screenshot-testing/support/chai-extras.js
+++ b/tests/lib/screenshot-testing/support/chai-extras.js
@@ -192,7 +192,8 @@ function capture(screenName, compareAgainst, selector, pageSetupFn, comparisonTh
var failures = [];
for (var i = 0; i < app.diffViewerGenerator.failures.length; i++) {
if (app.diffViewerGenerator.failures[i].name == testInfo.name &&
- app.diffViewerGenerator.failures[i].baseDirectory == testInfo.baseDirectory) {
+ app.diffViewerGenerator.failures[i].baseDirectory == testInfo.baseDirectory &&
+ app.runner.failures > 0) {
app.runner.failures--;
continue;
}