mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 10:03:21 +08:00
Add failing test coverage for quick retry after completion not changing rank
This commit is contained in:
parent
24b1d1e955
commit
7140eee870
@ -259,6 +259,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
var getOriginalPlayer = playToCompletion();
|
var getOriginalPlayer = playToCompletion();
|
||||||
|
|
||||||
AddStep("attempt to retry", () => getOriginalPlayer().ChildrenOfType<HotkeyRetryOverlay>().First().Action());
|
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);
|
AddUntilStep("wait for player", () => Game.ScreenStack.CurrentScreen != getOriginalPlayer() && Game.ScreenStack.CurrentScreen is Player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user