diff --git a/dist/index.js b/dist/index.js index 55acf1b..2b9a92a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -131239,7 +131239,7 @@ const createScreenshot = async (context, url, name) => { const base64Image = await page.screenshot({fullPage: true}); const screenshot = Buffer.from(base64Image, 'base64'); - page.close({runBeforeUnload: true}); + await page.close({runBeforeUnload: true}); return screenshot; }; @@ -142066,7 +142066,7 @@ const s3_access_token = core.getInput('S3_access_token'); const s3_secret_token = core.getInput('S3_secret_token'); const s3_bucket = core.getInput('S3_bucket'); const s3_region = core.getInput('S3_region'); -const breakdown = 30; +const breakdown = 40; const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); const commit = process.env.GITHUB_SHA; const pull_request = github.context.payload.pull_request; diff --git a/lib/index.js b/lib/index.js index d251ac7..35c519b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -64,7 +64,7 @@ const createScreenshot = async (context, url, name) => { const base64Image = await page.screenshot({fullPage: true}); const screenshot = Buffer.from(base64Image, 'base64'); - page.close({runBeforeUnload: true}); + await page.close({runBeforeUnload: true}); return screenshot; };