Use proper hash for creates_a_new_task snapshot

This commit is contained in:
Héctor Ramón Jiménez 2024-12-17 02:27:13 +01:00
parent 326c5852aa
commit 41a822c6fb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 19 additions and 18 deletions

View file

@ -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!"