Add failing test coverage for quick retry after completion not changing rank

This commit is contained in:
Bartłomiej Dach 2023-10-27 11:38:10 +02:00
parent 24b1d1e955
commit 7140eee870
No known key found for this signature in database

View File

@ -259,6 +259,7 @@ namespace osu.Game.Tests.Visual.Navigation
var getOriginalPlayer = playToCompletion();
AddStep("attempt to retry", () => getOriginalPlayer().ChildrenOfType<HotkeyRetryOverlay>().First().Action());
AddAssert("original play isn't failed", () => getOriginalPlayer().Score.ScoreInfo.Rank, () => Is.Not.EqualTo(ScoreRank.F));
AddUntilStep("wait for player", () => Game.ScreenStack.CurrentScreen != getOriginalPlayer() && Game.ScreenStack.CurrentScreen is Player);
}