Skip to content

Commit

Permalink
use the superior dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Aug 28, 2024
1 parent d58bafd commit c2952bc
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 598 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@
"openapi-types": "^10.0.0",
"p-reflect": "2.1.0",
"pbf": "3.2.1",
"pdf-visual-diff": "^0.9.0",
"pdf-visual-compare": "^1.4.0",
"peggy": "^1.2.0",
"picomatch": "^2.3.1",
"pidusage": "^3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import expect from '@kbn/expect';
import path from 'path';
import { comparePdfToSnapshot } from 'pdf-visual-diff';
import comparePdf from 'pdf-visual-compare';
import { FtrProviderContext } from '../../../../ftr_provider_context';

const REPORTS_FOLDER = path.resolve(__dirname, 'reports');
Expand Down Expand Up @@ -226,8 +226,13 @@ export default function ({
reportData,
REPORTS_FOLDER
);
const x = await comparePdfToSnapshot(sessionReportPath, REPORTS_FOLDER, reportFileName, {
tolerance: 0.035,
baselinePath = PageObjects.reporting.getBaselineReportPath(
reportFileName,
'pdf',
REPORTS_FOLDER
);
const x = await comparePdf(sessionReportPath, baselinePath, {
compareThreshold: 0.035,
});
expect(x).to.be(true);
});
Expand Down
Loading

0 comments on commit c2952bc

Please sign in to comment.