assert_snapshot

Macro assert_snapshot 

Source
assert_snapshot!() { /* proc-macro */ }
Expand description

Assert that a widget matches a snapshot.

§Example

#[presentar_test]
fn test_button_snapshot() {
    let button = Button::new("Submit");
    assert_snapshot!(button, "button_submit");
}