From 413e0a5d2dfe5f8c7dc46051d4a03ca8175b2e83 Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Wed, 28 Feb 2024 10:08:32 +0100 Subject: [PATCH] Catch another layer fetch error message --- frontend/puppeteer/e2e/utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/puppeteer/e2e/utils.ts b/frontend/puppeteer/e2e/utils.ts index d96911058d..7a5feacec6 100644 --- a/frontend/puppeteer/e2e/utils.ts +++ b/frontend/puppeteer/e2e/utils.ts @@ -9,13 +9,14 @@ export function listenToConsole(page: Page, index: number) { if (messageType === 'ERR') { console.log(message.args(), message.stackTrace()) + console.log(JSON.stringify(message)) if (message.text().includes('/sse')) { // If the SSE connection fails, the browser will restart it, it is not an application error return } - if (message.text().includes('/wfs')) { - // If the SSE connection fails, the browser will restart it, it is not an application error + if (message.text().includes('/wfs') || message.text().includes('areas')) { + // Do not throw an error when the app could not load a layer return }