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({