diff options
author | 2024-12-17 04:13:19 +0100 | |
---|---|---|
committer | 2024-12-17 04:13:19 +0100 | |
commit | 5220a064c5054e872fd2f8922aa83838bf066949 (patch) | |
tree | 409ed8fbd09aad67ee3ff37a32f775c4d249e6c9 /examples/todos | |
parent | 8f6f5c13b0f6e7a777a61995be372a19056b4dfc (diff) | |
download | iced-5220a064c5054e872fd2f8922aa83838bf066949.tar.gz iced-5220a064c5054e872fd2f8922aa83838bf066949.tar.bz2 iced-5220a064c5054e872fd2f8922aa83838bf066949.zip |
Write documentation for `iced_test`
Diffstat (limited to 'examples/todos')
-rw-r--r-- | examples/todos/src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 45034d6c..a5bca235 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -591,7 +591,8 @@ mod tests { use super::*; use iced::{Settings, Theme}; - use iced_test::{selector, Error, Simulator}; + use iced_test::selector::text; + use iced_test::{Error, Simulator}; fn simulator(todos: &Todos) -> Simulator<Message> { Simulator::with_settings( @@ -619,7 +620,7 @@ mod tests { } let mut ui = simulator(&todos); - let _ = ui.find(selector::text("Create the universe"))?; + let _ = ui.find(text("Create the universe"))?; let snapshot = ui.snapshot(&Theme::Dark)?; assert!( |