diff --git a/docker-compose.testcafe.yml b/docker-compose.testcafe.yml index 9c7d5115..33eb55a6 100644 --- a/docker-compose.testcafe.yml +++ b/docker-compose.testcafe.yml @@ -3,6 +3,8 @@ services: testcafe: build: tests/ working_dir: /project/tests + command: + - --dev # Run as root to have the right to access /var/run/docker.sock user: root environment: diff --git a/tests/tests/variables.ts b/tests/tests/variables.ts index 7edfb072..6f95873e 100644 --- a/tests/tests/variables.ts +++ b/tests/tests/variables.ts @@ -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); + } } });