From bb073f50860ccfbcdeb9a7254eb81aa528e1204d Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 26 Nov 2024 18:15:54 +0100 Subject: [PATCH] Fix regression_tests --- crates/egui/tests/regression_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/egui/tests/regression_tests.rs b/crates/egui/tests/regression_tests.rs index b24235713b5..f54cf1ffcf6 100644 --- a/crates/egui/tests/regression_tests.rs +++ b/crates/egui/tests/regression_tests.rs @@ -13,18 +13,18 @@ pub fn focus_should_skip_over_disabled_buttons() { harness.press_key(egui::Key::Tab); harness.run(); - let button_1 = harness.get_by_name("Button 1"); + let button_1 = harness.get_by_label("Button 1"); assert!(button_1.is_focused()); harness.press_key(egui::Key::Tab); harness.run(); - let button_3 = harness.get_by_name("Button 3"); + let button_3 = harness.get_by_label("Button 3"); assert!(button_3.is_focused()); harness.press_key(egui::Key::Tab); harness.run(); - let button_1 = harness.get_by_name("Button 1"); + let button_1 = harness.get_by_label("Button 1"); assert!(button_1.is_focused()); }