diff --git a/test/playwright.fixtures.ts b/test/playwright.fixtures.ts index 94e4f12d97..5c648fded5 100644 --- a/test/playwright.fixtures.ts +++ b/test/playwright.fixtures.ts @@ -166,7 +166,7 @@ fixtures.contextFactory.init(async ({ browser, defaultContextOptions, testInfo, let ordinal = 0; for (const context of contexts) { for (const page of context.pages()) - await page.screenshot({ timeout: 5000, path: testInfo.outputPath + `-test-failed-${++ordinal}.png` }); + await page.screenshot({ timeout: 5000, path: testInfo.outputPath(`test-failed-${++ordinal}.png`) }); } } for (const context of contexts)