From 5c934aa2c74318dad46616abf7163a5d11286314 Mon Sep 17 00:00:00 2001 From: ShaMan123 <shacharnen@gmail.com> Date: Sun, 1 Dec 2024 09:27:32 +0200 Subject: [PATCH] screenshot --- playwright.config.ts | 1 + tests/example.spec.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 610a0677d..75e1a4eb0 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -31,6 +31,7 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry", video: process.env.CI ? "retain-on-failure" : "on", + screenshot: "on", headless: false, }, diff --git a/tests/example.spec.ts b/tests/example.spec.ts index 6886258dc..20753787b 100644 --- a/tests/example.spec.ts +++ b/tests/example.spec.ts @@ -25,7 +25,7 @@ type NestingResult = { // test.use({ launchOptions: { slowMo: !process.env.CI ? 500 : 0 } }); -const sheet = { width: 300, height: 300 }; +const sheet = { width: 10, height: 10 }; test("Nest", async ({}) => { const electronApp = await electron.launch({