From 66163fd356861bd3232c378c5c225c29faaba06b Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 23 Oct 2024 18:31:25 +0200 Subject: [PATCH] More logs in the tests --- ui-tests/tests/sketcher.spec.ts | 1 + ui-tests/tests/tree.spec.ts | 1 + ui-tests/tests/ui.spec.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/ui-tests/tests/sketcher.spec.ts b/ui-tests/tests/sketcher.spec.ts index 6581141f..877a5558 100644 --- a/ui-tests/tests/sketcher.spec.ts +++ b/ui-tests/tests/sketcher.spec.ts @@ -8,6 +8,7 @@ test.describe('Sketcher test', () => { test.beforeEach(async ({ page, request }) => { page.setViewportSize({ width: 1920, height: 1080 }); page.on('console', message => { + console.log('ERROR IN THE PAGE', message.text()); if (message.type() === 'error') { errors += 1; } diff --git a/ui-tests/tests/tree.spec.ts b/ui-tests/tests/tree.spec.ts index 5e441c67..74097957 100644 --- a/ui-tests/tests/tree.spec.ts +++ b/ui-tests/tests/tree.spec.ts @@ -8,6 +8,7 @@ test.describe('Tree UI test', () => { test.beforeEach(async ({ page, request }) => { page.setViewportSize({ width: 1920, height: 1080 }); page.on('console', message => { + console.log('ERROR IN THE PAGE', message.text()); if (message.type() === 'error') { errors += 1; } diff --git a/ui-tests/tests/ui.spec.ts b/ui-tests/tests/ui.spec.ts index a6973a88..675e8661 100644 --- a/ui-tests/tests/ui.spec.ts +++ b/ui-tests/tests/ui.spec.ts @@ -14,6 +14,7 @@ test.describe('UI Test', () => { const logs: string[] = []; page.on('console', message => { + console.log('ERROR IN THE PAGE', message.text()); logs.push(message.text()); });