Open tom-miseur opened 11 months ago
I'd like to note that logs that are often relevant for fixing issues within tests, the ones coming from k6-browser itself (like. f.e "strict mode violation, multiple elements returned for selector query") are also affected by this and it is impossible to suppress console.error from erroneously written frontend code, while not suppressing logs from those relevant to test errors.
Brief summary
As soon as you add the
import
statement fork6/experimental/browser
,console.x
statements in the script are suppressed along with those emitted by k6-browser when settingK6_BROWSER_LOG
(I'm assuming that this is unintended, given the name of the environment variable).xk6-browser version
v0.47.0
OS
Windows 10
Chrome version
N/A
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Set
K6_BROWSER_LOG=error
and run this script:Repeat with the
import
added:Expected behaviour
Only log entries emitted by k6-browser are affected (e.g.
console-api
messages).Actual behaviour
All
console.x
output is affected.