novdom_testing/testing
Types
Functions
pub fn call_callee(callee: Callee) -> Nil
Call a callee to later check if it was called (see callee_count
).
Use this function to simulate a function call.
pub fn component_visible(component: Component) -> Bool
Check if a component is visible to the user
pub fn create_callee() -> Callee
Create a callee type that can be used to test if a function was called
pub fn trigger_event(component: Component, event: String) -> Nil
Trigger an event on a component.
Example to trigger a click event:
trigger_event(my_component, "click")