diff --git a/playwright/.gitignore b/playwright/.gitignore index 4863d3e..29e7b0f 100644 --- a/playwright/.gitignore +++ b/playwright/.gitignore @@ -1,2 +1,2 @@ /node_modules/ -/screenshot/ +/screenshots/ diff --git a/playwright/main.js b/playwright/main.js index 2d21b73..50a59cf 100644 --- a/playwright/main.js +++ b/playwright/main.js @@ -7,7 +7,7 @@ async function main() { const page = await context.newPage(); await page.goto("http://whatsmyuseragent.org/"); await page.screenshot({ - path: `screenshot/${ + path: `screenshots/${ process.env.PLAYWRIGHT_RUNNER || "example" }-${browserType}.png`, }); diff --git a/playwright/screenshot/.keep b/playwright/screenshots/.keep similarity index 100% rename from playwright/screenshot/.keep rename to playwright/screenshots/.keep