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:
authorsgiehl <stefan@piwik.org>2018-01-06 20:56:06 +0300
committersgiehl <stefan@piwik.org>2018-01-06 20:56:06 +0300
commit48864a124789b665a649e6e5bd75692048fcba76 (patch)
tree85281d268745502ab2944eac8529f72bfc4c4c78 /tests
parent66ba4e4f9a55802124170c4f84a1b07fa38436e5 (diff)
small improvement
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;
}