1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 20:04:08 +08:00

Add test coverage of fast menu keypresses failing to register

This commit is contained in:
Dean Herbert
2024-02-26 22:24:35 +08:00
Unverified
parent 09b420a083
commit d6622c1756
@@ -28,6 +28,21 @@ namespace osu.Game.Tests.Visual.Navigation
AddAssert("state is top level", () => buttons.State == ButtonSystemState.TopLevel);
}
[Test]
public void TestFastShortcutKeys()
{
AddAssert("state is initial", () => buttons.State == ButtonSystemState.Initial);
AddStep("press P three times", () =>
{
InputManager.Key(Key.P);
InputManager.Key(Key.P);
InputManager.Key(Key.P);
});
AddAssert("entered song select", () => Game.ScreenStack.CurrentScreen is PlaySongSelect);
}
[Test]
public void TestShortcutKeys()
{