Skip to main content

assert_attr_value

Function assert_attr_value 

Source
pub fn assert_attr_value(
    output: &RenderOutput,
    name: &str,
    expected: &str,
) -> bool
Expand description

Assert that a RenderOutput has an HTML attribute with the expected string value.

Returns true if the attribute exists and its value matches.