mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Fix failing gameplay bindings test
This commit is contained in:
parent
daae560ff7
commit
b0314c67aa
@ -56,6 +56,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
PushAndConfirm(() => new PlaySongSelect());
|
||||
|
||||
AddUntilStep("wait for selection", () => !Game.Beatmap.IsDefault);
|
||||
AddUntilStep("wait for carousel load", () => songSelect.BeatmapSetsLoaded);
|
||||
|
||||
AddStep("enter gameplay", () => InputManager.Key(Key.Enter));
|
||||
|
||||
@ -92,6 +93,8 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
.AsEnumerable()
|
||||
.First(k => k.RulesetName == "osu" && k.ActionInt == 0);
|
||||
|
||||
private Screens.Select.SongSelect songSelect => Game.ScreenStack.CurrentScreen as Screens.Select.SongSelect;
|
||||
|
||||
private Player player => Game.ScreenStack.CurrentScreen as Player;
|
||||
|
||||
private KeyCounter keyCounter => player.ChildrenOfType<KeyCounter>().First();
|
||||
|
Loading…
Reference in New Issue
Block a user