Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(test): update path for screenshots on failure (#4120)
Arjun Attam8ad340479d77
diff --git a/test/playwright.fixtures.ts b/test/playwright.fixtures.tsindex 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)