update screenshot
This commit is contained in:
parent
591b050bb5
commit
6e2308b070
|
|
@ -15,7 +15,7 @@ export const screenShot = async (filename) => {
|
|||
await bodyHandle.dispose();
|
||||
await page.setViewport({ width: 1920, height: 500 });
|
||||
setTimeout(async () => {
|
||||
await page.screenshot({ path: "app/utils/screenshot.png" });
|
||||
await page.screenshot({ path: "app/store/screenshot/"+Date.now()+filename+".png" });
|
||||
browser.close();
|
||||
}, 5000);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 107 KiB |
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue