Skip to content

Commit

Permalink
Fix regression_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bircni committed Nov 26, 2024
1 parent d1c8f12 commit bb073f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/egui/tests/regression_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit bb073f5

Please sign in to comment.