Make the test hold the button instead of pressing it

This commit is contained in:
CenTdemeern1 2022-04-04 22:44:35 +02:00
parent 9a07a95d39
commit da315f8a61

View File

@ -169,7 +169,7 @@ namespace osu.Game.Tests.Visual.UserInterface
AddStep("click delete button", () =>
{
InputManager.MoveMouseTo(dialogOverlay.ChildrenOfType<DialogButton>().First());
InputManager.Click(MouseButton.Left);
InputManager.PressButton(MouseButton.Left);
});
AddUntilStep("wait for fetch", () => leaderboard.Scores != null);