Skip to content

The headless browser for AI agents and web scraping

test(js): gate pseudo content check on rendering

SGavrl5299b73bcc3f
diff --git a/crates/obscura-js/src/runtime.rs b/crates/obscura-js/src/runtime.rs
index 678ea566..f79edbfd 100644
--- a/crates/obscura-js/src/runtime.rs
+++ b/crates/obscura-js/src/runtime.rs
@@ -7477,6 +7477,7 @@ mod tests {
);
}
+ #[cfg(feature = "render")]
#[test]
fn computed_style_exposes_generated_pseudo_content() {
let mut rt = setup_runtime(