1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
This commit is contained in:
Nebel 2020-07-27 19:50:28 +09:00
parent 4c1c2ee744
commit 9565232923
3 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
/node_modules/ /node_modules/
/screenshot/ /screenshots/

View file

@ -7,7 +7,7 @@ async function main() {
const page = await context.newPage(); const page = await context.newPage();
await page.goto("http://whatsmyuseragent.org/"); await page.goto("http://whatsmyuseragent.org/");
await page.screenshot({ await page.screenshot({
path: `screenshot/${ path: `screenshots/${
process.env.PLAYWRIGHT_RUNNER || "example" process.env.PLAYWRIGHT_RUNNER || "example"
}-${browserType}.png`, }-${browserType}.png`,
}); });