Skip to content

Commit

Permalink
fix: fullPageScreenshot audit location
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Feb 29, 2024
1 parent 58630a3 commit f03d543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/puppeteer/tasks/lighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ export const runLighthouseTask: PuppeteerTask = async (props) => {
if (report.audits?.['final-screenshot']?.details?.data)
await fs.writeFile(join(routeReport.artifactPath, ReportArtifacts.screenshot), base64ToBuffer(report.audits['final-screenshot'].details.data))

if (report.audits?.['full-page-screenshot']?.details?.screenshot?.data)
await fs.writeFile(join(routeReport.artifactPath, ReportArtifacts.fullScreenScreenshot), base64ToBuffer(report.audits['full-page-screenshot'].details.screenshot.data))
if (report.fullPageScreenshot.screenshot.data)
await fs.writeFile(join(routeReport.artifactPath, ReportArtifacts.fullScreenScreenshot), base64ToBuffer(report.fullPageScreenshot.screenshot.data))

// extract the screenshot-thumbnails into separate files
const screenshotThumbnails = report.audits?.['screenshot-thumbnails']?.details
Expand Down

0 comments on commit f03d543

Please sign in to comment.