Revert screenshot comparison tests to old threshold parameters (#17626)

Applies to Tagcloud. https://github.com/elastic/kibana/pull/17597 made them too strict, causing them to fail in CI.
This commit is contained in:
Thomas Neirynck 2018-04-10 10:40:49 -04:00 committed by GitHub
parent f03b4fd837
commit e3d81bf802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -398,7 +398,7 @@ describe('tag cloud tests', function () {
await fromNode(cb => tagCloud.once('renderComplete', cb));
const mismatchedPixels = await imageComparator.compareDOMContents(domNode.innerHTML, 512, 512, simpleloadPng, 0.35);
const mismatchedPixels = await imageComparator.compareDOMContents(domNode.innerHTML, 512, 512, simpleloadPng, 0.50);
expect(mismatchedPixels).to.be.lessThan(64);
});

View file

@ -8,7 +8,7 @@ import basicdrawPng from './basicdraw.png';
import afterresizePng from './afterresize.png';
import afterparamChange from './afterparamchange.png';
const THRESHOLD = 0.35;
const THRESHOLD = 0.65;
const PIXEL_DIFF = 64;
describe('TagCloudVisualizationTest', function () {