Skip to content

Commit

Permalink
[reporting] functional test: increase allowance for visual difference… (
Browse files Browse the repository at this point in the history
elastic#135356)

* [reporting] functional test: increase allowance for visual difference in downloaded report

* Revert "skip flaky suite (elastic#135309)"

This reverts commit b556857.

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
2 people authored and Vadim Yakhin committed Jul 5, 2022
1 parent db3b0d2 commit 2866738
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const browser = getService('browser');
const compareImages = getService('compareImages');

// FLAKY: https://github.com/elastic/kibana/issues/135309
describe.skip('Reporting Functional Tests with forced timeout', function () {
describe('Reporting Functional Tests with forced timeout', function () {
const dashboardTitle = 'Ecom Dashboard Hidden Panel Titles';
const baselineAPng = path.resolve(__dirname, 'fixtures/baseline/warnings_capture_a.png');
const sessionPng = 'warnings_capture_session_a';
Expand Down Expand Up @@ -51,8 +50,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const captureData = await PageObjects.reporting.getRawPdfReportData(url);
const pngSessionFilePath = await compareImages.writeToSessionFile(sessionPng, captureData);

// allow minor visual differences: https://github.com/elastic/kibana/issues/135309#issuecomment-1169095186
expect(await compareImages.checkIfPngsMatch(pngSessionFilePath, baselineAPng)).to.be.lessThan(
0.01
0.011
);
});
});
Expand Down

0 comments on commit 2866738

Please sign in to comment.