Bugzilla – Attachment 186977 Details for
Bug 40809
JS warning should make Cypress tests fail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40809: Also logs args in the console
Bug-40809-Also-logs-args-in-the-console.patch (text/plain), 998 bytes, created by
Jonathan Druart
on 2025-09-26 14:58:31 UTC
(
hide
)
Description:
Bug 40809: Also logs args in the console
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-26 14:58:31 UTC
Size:
998 bytes
patch
obsolete
>From 51804d878eadcf2a62044d4b9712e81142d15cc6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40809
:
186401
|
186951
|
186966
|
186967
|
186968
|
186969
| 186977