diff options
author | 2024-12-17 02:27:13 +0100 | |
---|---|---|
committer | 2024-12-17 03:03:07 +0100 | |
commit | 41a822c6fb6dd15c9e2246a6f0d136d83c6c7d00 (patch) | |
tree | 98e44bef144d5985b1fb57771f19304bd36c06a9 /examples/todos/src | |
parent | 326c5852aad35eb16d4621325b1d5cb0055c49c4 (diff) | |
download | iced-41a822c6fb6dd15c9e2246a6f0d136d83c6c7d00.tar.gz iced-41a822c6fb6dd15c9e2246a6f0d136d83c6c7d00.tar.bz2 iced-41a822c6fb6dd15c9e2246a6f0d136d83c6c7d00.zip |
Use proper hash for `creates_a_new_task` snapshot
Diffstat (limited to 'examples/todos/src')
-rw-r--r-- | examples/todos/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 1cc47782..45034d6c 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -590,7 +590,7 @@ impl SavedState { mod tests { use super::*; - use iced::Settings; + use iced::{Settings, Theme}; use iced_test::{selector, Error, Simulator}; fn simulator(todos: &Todos) -> Simulator<Message> { @@ -621,7 +621,7 @@ mod tests { let mut ui = simulator(&todos); let _ = ui.find(selector::text("Create the universe"))?; - let snapshot = ui.snapshot()?; + let snapshot = ui.snapshot(&Theme::Dark)?; assert!( snapshot.matches_hash("snapshots/creates_a_new_task")?, "snapshots should match!" |