This commit is contained in:
BlauFx 2022-08-08 21:12:38 +02:00
parent f6e65cf1af
commit e4879aa450
No known key found for this signature in database
GPG Key ID: BB73374479D2AA97

View File

@ -353,6 +353,22 @@ namespace osu.Game.Tests.Visual.Gameplay
AddUntilStep("sound volume restored", () => Beatmap.Value.Track.AggregateVolume.Value == 1);
}
[Test]
public void TestQuickRetry()
{
AddStep("load dummy beatmap", () => resetPlayer(false));
AddUntilStep("wait for current", () => player.IsCurrentScreen());
AddStep("Restart map normally", () => player.Restart());
AddUntilStep("wait for current", () => player.IsCurrentScreen());
AddStep("Restart map with quick retry hotkey", () =>
{
InputManager.UseParentInput = true;
InputManager.PressKey(Key.Tilde);
});
}
private EpilepsyWarning getWarning() => loader.ChildrenOfType<EpilepsyWarning>().SingleOrDefault();
private class TestPlayerLoader : PlayerLoader