Use WaitForEventAt() in Grid::ReorderedColumnsCellClick test too

This test also sporadically fails on AppVeyor.
This commit is contained in:
Vadim Zeitlin 2024-01-01 22:04:41 +01:00
parent acf113f3f9
commit 268b2b98e0

View file

@ -534,8 +534,10 @@ TEST_CASE_METHOD(GridTestCase, "Grid::ReorderedColumnsCellClick", "[grid]")
wxYield();
sim.MouseClick();
wxYield();
if ( !WaitForEventAt(point, "mouse click to be processed", [&]() {
return click.GetCount() != 0;
}) )
return;
CHECK(click.GetCount() == 1);
#endif
}