diff --git a/crates/ui-egui/tests/system_theme.rs b/crates/ui-egui/tests/system_theme.rs index 73a4f19..e6b0542 100644 --- a/crates/ui-egui/tests/system_theme.rs +++ b/crates/ui-egui/tests/system_theme.rs @@ -181,7 +181,10 @@ fn title_bar_switch_and_file_menu_choose_the_theme() { // File opens Backstage; its Options page holds the Office Theme choice (#331). h.get_by_label("File").click(); h.run_steps(3); - h.get_by_label("Options").click(); + h.get_by_role_and_label(egui::accesskit::Role::Button, "Options").click(); + h.run_steps(3); + // The first combo box on the page is Display theme. + h.get_all_by_role(egui::accesskit::Role::ComboBox).next().expect("theme combo").click(); h.run_steps(3); h.get_by_label("System").click(); h.run_steps(3);