Skip to content

Lightpanda: the headless browser designed for AI and automation

dev: silence a test that uses/needs console

Karl Seguin78d779332780
diff --git a/src/cdp/domains/runtime.zig b/src/cdp/domains/runtime.zig
index 6228ee738..f2758cd92 100644
--- a/src/cdp/domains/runtime.zig
+++ b/src/cdp/domains/runtime.zig
@@ -167,6 +167,9 @@ pub fn consoleMessage(arena: Allocator, bc: *CDP.BrowserContext, event: *const N
const testing = @import("../testing.zig");
test "cdp.runtime: consoleAPICalled type matches the console method" {
+ const filter: testing.LogFilter = .init(&.{.js});
+ defer filter.deinit();
+
// Wire types per the CDP protocol: console.log -> "log",
// console.warn -> "warning" (not "warn"), console.info -> "info",
// console.error -> "error", console.debug -> "debug".