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:
parent
f03b4fd837
commit
e3d81bf802
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue