mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Fix failing gameplay bindings test
This commit is contained in:
@ -56,6 +56,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
PushAndConfirm(() => new PlaySongSelect());
|
PushAndConfirm(() => new PlaySongSelect());
|
||||||
|
|
||||||
AddUntilStep("wait for selection", () => !Game.Beatmap.IsDefault);
|
AddUntilStep("wait for selection", () => !Game.Beatmap.IsDefault);
|
||||||
|
AddUntilStep("wait for carousel load", () => songSelect.BeatmapSetsLoaded);
|
||||||
|
|
||||||
AddStep("enter gameplay", () => InputManager.Key(Key.Enter));
|
AddStep("enter gameplay", () => InputManager.Key(Key.Enter));
|
||||||
|
|
||||||
@ -92,6 +93,8 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
.AsEnumerable()
|
.AsEnumerable()
|
||||||
.First(k => k.RulesetName == "osu" && k.ActionInt == 0);
|
.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 Player player => Game.ScreenStack.CurrentScreen as Player;
|
||||||
|
|
||||||
private KeyCounter keyCounter => player.ChildrenOfType<KeyCounter>().First();
|
private KeyCounter keyCounter => player.ChildrenOfType<KeyCounter>().First();
|
||||||
|
Reference in New Issue
Block a user