novdom_testing/component_should
Functions
pub fn attribute(component: Component, name: String) -> String
Returns the value of an attribute
pub fn be_visible(component: Component) -> Component
Check if a component is visible to the user
pub fn have_attribute(
component: Component,
attribute: Parameter,
) -> Component
Check if a component has a specific attribute
pub fn have_child(
parent: Component,
child: Component,
) -> Component
pub fn have_listener(
component: Component,
listener_fn: fn(fn(Event) -> Nil) -> Parameter,
) -> Component
Check if a component has a specific listener (callback is not checked)
pub fn have_listener_callback(
component: Component,
listener: Parameter,
) -> Component
Check if a component has a specific listener with a specific callback
pub fn not_have_attribute(
component: Component,
attribute: Parameter,
) -> Component
pub fn not_have_child(
parent: Component,
child: Component,
) -> Component
pub fn not_have_listener(
component: Component,
listener_fn: fn(fn(Event) -> Nil) -> Parameter,
) -> Component
pub fn not_have_listener_callback(
component: Component,
listener: Parameter,
) -> Component
pub fn not_have_tag(
component: Component,
tag: String,
) -> Component
pub fn not_show_text(
component: Component,
text: String,
) -> Component