Skip to content

Commit

Permalink
feat: add tests for slider
Browse files Browse the repository at this point in the history
  • Loading branch information
gsora committed Nov 16, 2022
1 parent 5243e8c commit d57088a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions services/modals/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ pub fn spawn_test() {
}
Err(e) => log::error!("couldn't get input: {:?}", e),
}

// 6. human interaction-enabled slider
log::info!("testing human interaction-enabled slider");
let result = modals.slider(
"Human interaction-enabled slider!",
0,
100,
50,
).expect("slider test failed");

modals.show_notification(&format!("Slider value: {}", result), None)
.expect("cannot show slider result notification");

log::info!("slider test done");
}
});

Expand Down Expand Up @@ -165,6 +179,9 @@ pub fn spawn_test() {
modals.show_image(bm).expect("show image modal failed");
log::info!("image modal test done");
}

// 6. test that human-interactable slider modal
log::info!("testing human interaction-enabled modal");
}
});
}
Expand Down

0 comments on commit d57088a

Please sign in to comment.