mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
Format the font preview regression test
This commit is contained in:
1 parent
b512b87692
commit
15cc4314a6
1 file changed
+5
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user