diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/reports/README.md b/x-pack/test/functional/apps/dashboard/group3/reporting/reports/README.md deleted file mode 100644 index 4ad09d3c44853..0000000000000 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/reports/README.md +++ /dev/null @@ -1,8 +0,0 @@ -## `reporting/reports` folder - -`x-pack/test/functional/apps/dashboard/group?/reporting/reports/__snapshots__`: this folder contains snapshots -(PNG files) used for PDF visual regression testing. In the testing library we use, "pdf-visual-diff", it is -necessary to convert PDF files to PNG, and compare the result to the snapshots located in this folder. - -`x-pack/test/functional/apps/dashboard/group?/reporting/reports/baseline`: this folder contains the snapshots -for PNG regression testing via "pngjs" diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/reports/__snapshots__/sample_data_ecommerce_76.png b/x-pack/test/functional/apps/dashboard/group3/reporting/reports/__snapshots__/sample_data_ecommerce_76.png deleted file mode 100644 index ee7be67dfc908..0000000000000 Binary files a/x-pack/test/functional/apps/dashboard/group3/reporting/reports/__snapshots__/sample_data_ecommerce_76.png and /dev/null differ diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/reports/baseline/sample_data_ecommerce_76.pdf b/x-pack/test/functional/apps/dashboard/group3/reporting/reports/baseline/sample_data_ecommerce_76.pdf new file mode 100644 index 0000000000000..8189711fbb653 Binary files /dev/null and b/x-pack/test/functional/apps/dashboard/group3/reporting/reports/baseline/sample_data_ecommerce_76.pdf differ diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts b/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts index 40268e978ad92..31f9f4a45e492 100644 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts +++ b/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts @@ -231,10 +231,11 @@ export default function ({ 'pdf', REPORTS_FOLDER ); - const x = await comparePdf(sessionReportPath, baselinePath, { - compareThreshold: 0.035, - }); - expect(x).to.be(true); + expect( + await comparePdf(sessionReportPath, baselinePath, { + compareThreshold: 0.035, + }) + ).to.be(true); }); it('PNG file matches the baseline image', async function () {