Enable testcafe dev mode to pinpoint testcafe errors
This commit is contained in:
parent
97460886f0
commit
a5c7abe61e
2 changed files with 7 additions and 1 deletions
|
@ -154,7 +154,11 @@ test("Test that variables storage works", async (t: TestController) => {
|
|||
}).after(async t => {
|
||||
if (!t.ctx.passed) {
|
||||
console.log("Test failed. Browser logs:")
|
||||
console.log(await t.getBrowserConsoleMessages());
|
||||
try {
|
||||
console.log(await t.getBrowserConsoleMessages());
|
||||
} catch (e) {
|
||||
console.error('Error while fetching browser logs (maybe linked to a closed iframe?)', e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue