diff --git a/crates/ui-egui/src/chrome/tests.rs b/crates/ui-egui/src/chrome/tests.rs index 837c3d5e9a..79d4371f47 100644 --- a/crates/ui-egui/src/chrome/tests.rs +++ b/crates/ui-egui/src/chrome/tests.rs @@ -570,7 +570,7 @@ fn the_app_bar_home_is_small_and_menu_titles_pad_their_text() { bar.frame(Vec::new()).frame(Vec::new()); let (small, pad) = read.get(); assert!(small > 0.0 && pad > 0.0, "the sizes are read from the theme"); - let home = bar.starting("Home").unwrap_or_else(|| panic!("Home shows in {:?}", bar.names())).rect; + let home = bar.app_bar_control("Home").unwrap_or_else(|| panic!("Home shows in {:?}", bar.names())).rect; assert!(home.height() <= small + 0.5, "Home is {} high, over the small control height {small}", home.height()); let texts = bar.texts(); for title in ["File", "Edit", "Object"] {