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

@ -1 +0,0 @@
e0b1f2e0c0af6324eb45fde8e82384d16acc2a80a9e157bdf3f42ac6548181cf

View file

@ -0,0 +1 @@
3160686067cb7c738802009cdf2f3c5f5a5bd8c89ada70517388b7adbe64c313

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