From 51804d878eadcf2a62044d4b9712e81142d15cc6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Sep 2025 16:56:38 +0200 Subject: [PATCH] Bug 40809: Also logs args in the console For an unknown reason there are useful data that are displayed when using console.log that we don't see when throwing the Error This was the purpose of the previous patch (to have everything in Error) but it didn't work. However we can keep it. --- t/cypress/support/e2e.js | 1 + 1 file changed, 1 insertion(+) diff --git a/t/cypress/support/e2e.js b/t/cypress/support/e2e.js index db5111fba44..d2efe54732c 100644 --- a/t/cypress/support/e2e.js +++ b/t/cypress/support/e2e.js @@ -38,6 +38,7 @@ function stringifyArgs(args) { } Cypress.on("window:before:load", win => { win.console.warn = (...args) => { + console.log(args); const message = stringifyArgs(args); throw new Error(`JS Warning detected: ${message}`); }; -- 2.34.1