feat: include screenshot for emails + sms notifications (#144)

This commit is contained in:
Jordan Garcia
2020-09-20 20:42:20 -04:00
committed by GitHub
parent 0f6e570cc8
commit 7191e03a80
5 changed files with 27 additions and 5 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ async function lookup(browser: Browser, store: Store) {
if (Config.page.capture) {
Logger.debug(' saving screenshot');
await page.screenshot({path: `success-${Date.now()}.png`});
link.screenshot = `success-${Date.now()}.png`;
await page.screenshot({path: link.screenshot});
}
const givenUrl = link.cartUrl ? link.cartUrl : link.url;