Use proper hash for creates_a_new_task snapshot
This commit is contained in:
parent
326c5852aa
commit
41a822c6fb
5 changed files with 19 additions and 18 deletions
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue