From 5220a064c5054e872fd2f8922aa83838bf066949 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 17 Dec 2024 04:13:19 +0100 Subject: Write documentation for `iced_test` --- examples/todos/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/todos/src/main.rs') 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 { 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!( -- cgit