fix(test): update path for screenshots on failure (#4120)

This commit is contained in:
Arjun Attam 2020-10-12 21:51:17 -07:00 committed by GitHub
parent 58c53c1039
commit 8ad340479d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)