From 8ad340479d77a23ff6d28510a4738181614ca52a Mon Sep 17 00:00:00 2001 From: Arjun Attam Date: Mon, 12 Oct 2020 21:51:17 -0700 Subject: [PATCH] fix(test): update path for screenshots on failure (#4120) --- test/playwright.fixtures.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)