update screenshot

This commit is contained in:
joseph le 2023-09-15 13:54:16 +07:00
parent 591b050bb5
commit 6e2308b070
3 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export const screenShot = async (filename) => {
await bodyHandle.dispose(); await bodyHandle.dispose();
await page.setViewport({ width: 1920, height: 500 }); await page.setViewport({ width: 1920, height: 500 });
setTimeout(async () => { setTimeout(async () => {
await page.screenshot({ path: "app/utils/screenshot.png" }); await page.screenshot({ path: "app/store/screenshot/"+Date.now()+filename+".png" });
browser.close(); browser.close();
}, 5000); }, 5000);
} catch (error) { } catch (error) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB