mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Add extra test coverage for marking score as failed
This commit is contained in:
parent
86a8ab6db6
commit
3944b045ed
@ -247,6 +247,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddStep("end spectator before retry", () => Game.SpectatorClient.EndPlaying(player.GameplayState));
|
||||
|
||||
AddStep("attempt to retry", () => player.ChildrenOfType<HotkeyRetryOverlay>().First().Action());
|
||||
AddAssert("old player score marked failed", () => player.Score.ScoreInfo.Rank, () => Is.EqualTo(ScoreRank.F));
|
||||
AddUntilStep("wait for old player gone", () => Game.ScreenStack.CurrentScreen != player);
|
||||
|
||||
AddUntilStep("get new player", () => (player = Game.ScreenStack.CurrentScreen as Player) != null);
|
||||
|
Loading…
Reference in New Issue
Block a user