fix headless tests

This commit is contained in:
Evan Almloff 2024-03-08 10:54:02 -06:00
parent 4bc2f4a713
commit 98158bdc6f

View file

@ -25,14 +25,13 @@ fn use_inner_html(id: &'static str) -> Option<String> {
.unwrap(); .unwrap();
if let Some(html) = res.as_str() { if let Some(html) = res.as_str() {
// serde_json::Value::String(html)
println!("html: {}", html); println!("html: {}", html);
value.set(Some(html.to_string())); value.set(Some(html.to_string()));
} }
}); });
}); });
value.read().clone() value()
} }
const EXPECTED_HTML: &str = r#"<div style="width: 100px; height: 100px; color: rgb(0, 0, 0);" id="5"><input type="checkbox"><h1>text</h1><div><p>hello world</p></div></div>"#; const EXPECTED_HTML: &str = r#"<div style="width: 100px; height: 100px; color: rgb(0, 0, 0);" id="5"><input type="checkbox"><h1>text</h1><div><p>hello world</p></div></div>"#;