Format the font preview regression test

This commit is contained in:
Codex committed 2026-11-30 13:39:47 +01:00
1 parent 98e5003ec3
commit 274983176d
1 file changed
+5 -1
+5 -1
View File
@@ -86,7 +86,11 @@ fn preview_changes_the_text_live_and_only_a_choice_is_a_step() {
let before = steps(&app);
apply_preview(&mut app, owner(), Preview::Shows("Source Serif 4".into()));
assert_eq!(font_of(&app, id), "Source Serif 4", "previewed on the text");
assert_eq!(crate::panels::character::values(&mut app).family.as_deref(), Some("Inter"), "the picker must still be able to commit the previewed row");
assert_eq!(
crate::panels::character::values(&mut app).family.as_deref(),
Some("Inter"),
"the picker must still be able to commit the previewed row"
);
apply_preview(&mut app, owner(), Preview::Shows("Source Sans 3".into()));
assert_eq!(font_of(&app, id), "Source Sans 3");
apply_preview(&mut app, owner(), Preview::Ended);