From b049a47d9fbc1444ec0bc0e48a5ee681206cbaf4 Mon Sep 17 00:00:00 2001 From: rain Date: Fri, 18 Aug 2023 13:14:26 -0500 Subject: Fixed issue with image verification paths as a result of changes to implement #1 --- snappy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snappy.js b/snappy.js index 96fd5a6..b561d8e 100755 --- a/snappy.js +++ b/snappy.js @@ -139,16 +139,17 @@ async function run() { for(var i = 0;i { let userTimeout = parseInt(argv.t); await timeout(isNaN(userTimeout)?0:userTimeout*1000); - await page.screenshot({path: argv.o + imageName}).then(async () => { + await page.screenshot({path: fullImagePath}).then(async () => { if(!argv.v) return; - const res = await verifyImage(imageName); + const res = await verifyImage(fullImagePath); if(res) fs.appendFileSync(argv.v, `${site}\n`); }); -- cgit v1.2.3