Enable testcafe dev mode to pinpoint testcafe errors
This commit is contained in:
parent
97460886f0
commit
a5c7abe61e
@ -3,6 +3,8 @@ services:
|
|||||||
testcafe:
|
testcafe:
|
||||||
build: tests/
|
build: tests/
|
||||||
working_dir: /project/tests
|
working_dir: /project/tests
|
||||||
|
command:
|
||||||
|
- --dev
|
||||||
# Run as root to have the right to access /var/run/docker.sock
|
# Run as root to have the right to access /var/run/docker.sock
|
||||||
user: root
|
user: root
|
||||||
environment:
|
environment:
|
||||||
|
@ -154,7 +154,11 @@ test("Test that variables storage works", async (t: TestController) => {
|
|||||||
}).after(async t => {
|
}).after(async t => {
|
||||||
if (!t.ctx.passed) {
|
if (!t.ctx.passed) {
|
||||||
console.log("Test failed. Browser logs:")
|
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…
Reference in New Issue
Block a user