1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:12:57 +08:00

In gameplay bindings test, ensure a selection is made before attempting to enter gameplay

This commit is contained in:
Dean Herbert 2022-01-25 14:30:00 +09:00
parent d8270fe14f
commit 90a7dd7711

View File

@ -50,8 +50,11 @@ namespace osu.Game.Tests.Visual.Navigation
AddStep("close settings", () => Game.Settings.Hide());
AddStep("import beatmap", () => BeatmapImportHelper.LoadQuickOszIntoOsu(Game).WaitSafely());
PushAndConfirm(() => new PlaySongSelect());
AddUntilStep("wait for selection", () => !Game.Beatmap.IsDefault);
AddStep("enter gameplay", () => InputManager.Key(Key.Enter));
AddUntilStep("wait for gameplay", () => player?.IsBreakTime.Value == false);