Debugging failed tests

This commit is contained in:
Steve Faulkner
2020-12-16 19:22:47 -06:00
parent f54e8eb692
commit ba5ab37bac
5 changed files with 6 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ describe("Collection Add and Delete Cassandra spec", () => {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testName = (expect as any).getState().currentTestName;
await page.screenshot({ path: `failed-${testName}.jpg` });
await page.screenshot({ path: `./failed-${testName}.jpg` });
throw error;
}
});