From 16d9a0e205c5e032e436db62328e311007a2133d Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 14 May 2025 16:06:10 +0200 Subject: [PATCH] test: enhance console error logging with type tags --- frontend/webcomponent/tests/e2e/openvidu-meet.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/webcomponent/tests/e2e/openvidu-meet.test.ts b/frontend/webcomponent/tests/e2e/openvidu-meet.test.ts index 8d38922..ec13231 100644 --- a/frontend/webcomponent/tests/e2e/openvidu-meet.test.ts +++ b/frontend/webcomponent/tests/e2e/openvidu-meet.test.ts @@ -23,9 +23,9 @@ test.describe('Web Component E2E Tests', () => { test.beforeEach(async ({ page }) => { if (!subscribedToAppErrors) { page.on('console', (msg) => { - if (msg.type() === 'error') { - console.error(`Console Error: ${msg.text()}`); - } + const type = msg.type(); + const tag = type === 'error' ? 'ERROR' : type === 'warning' ? 'WARNING' : 'LOG'; + console.log('[' + tag + ']', msg.text()); }); subscribedToAppErrors = true; }