fix(test): update path for screenshots on failure (#4120)
This commit is contained in:
parent
58c53c1039
commit
8ad340479d
|
|
@ -166,7 +166,7 @@ fixtures.contextFactory.init(async ({ browser, defaultContextOptions, testInfo,
|
||||||
let ordinal = 0;
|
let ordinal = 0;
|
||||||
for (const context of contexts) {
|
for (const context of contexts) {
|
||||||
for (const page of context.pages())
|
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)
|
for (const context of contexts)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue