diff --git a/crates/egui_kittest/tests/regression_tests.rs b/crates/egui_kittest/tests/regression_tests.rs index b21081d2d8c4..8567e10ea90b 100644 --- a/crates/egui_kittest/tests/regression_tests.rs +++ b/crates/egui_kittest/tests/regression_tests.rs @@ -78,12 +78,16 @@ fn test_combobox() { results.push(harness.try_snapshot("combobox_opened")); let item_2 = harness.get_by_role_and_label(Role::Button, "Item 2"); - item_2.click(); + // Node::click doesn't close the popup, so we use simulate_click + item_2.simulate_click(); harness.run(); assert_eq!(harness.state(), &1); + // Popup should be closed now + assert!(harness.query_by_label("Item 2").is_none()); + for result in results { if let Err(err) = result { panic!("{}", err);