From e650397bac3ae616bcfa85b96b3be2d18195324f Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:54:21 +0100 Subject: [PATCH] Collect `console.debug` logs during cypress tests (#11478) In order for the logs collected by cypress to actually be useful, we really need `cons:debug`. --- cypress/support/e2e.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts index 11eae401f9..b98732f11f 100644 --- a/cypress/support/e2e.ts +++ b/cypress/support/e2e.ts @@ -50,7 +50,9 @@ installLogsCollector({ "cons:info", "cons:warn", "cons:error", - // "cons:debug", + // most of our logs go through `loglevel`, which sets `logger.log` to be an alias of `logger.debug`. + // Hence, if we want to capture `logger.log` lines, we need to enable `cons:debug` here. + "cons:debug", "cy:log", "cy:xhr", "cy:fetch",