diff options
author | sgiehl <stefan@piwik.org> | 2018-01-06 20:56:06 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2018-01-06 20:56:06 +0300 |
commit | 48864a124789b665a649e6e5bd75692048fcba76 (patch) | |
tree | 85281d268745502ab2944eac8529f72bfc4c4c78 /tests | |
parent | 66ba4e4f9a55802124170c4f84a1b07fa38436e5 (diff) |
small improvement
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/screenshot-testing/support/chai-extras.js | 3 |
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; } |