Skip to content

Commit

Permalink
screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Dec 1, 2024
1 parent be7d3f2 commit 5c934aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},

Expand Down
2 changes: 1 addition & 1 deletion tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 5c934aa

Please sign in to comment.