use webelements::{we_builder, WebElement, WebElementBuilder}; use wasm_bindgen_test::{wasm_bindgen_test, wasm_bindgen_test_configure}; wasm_bindgen_test_configure!(run_in_browser); #[we_builder(
)] #[derive(Debug, Clone, WebElement)] struct MyElement {} #[we_builder(
)] #[derive(Debug, Clone, WebElement)] struct OtherElement {} #[wasm_bindgen_test] fn test_we_elements() { let el = OtherElement::build().unwrap(); assert_eq!(el.elem.first().unwrap().repeated.len(), 5) }