1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Fix TransitiouOutTest getting stuck on pause

This commit is contained in:
David Zhao 2019-02-22 17:15:05 +09:00
parent 263972a048
commit 6bf831b96f

View File

@ -202,7 +202,15 @@ namespace osu.Game.Tests.Visual
public void TransitionOutTest()
{
performSetup();
AddStep("Exit player", () => songSelect.MakeCurrent());
AddUntilStep(() =>
{
if (!songSelect.IsCurrentScreen())
{
songSelect.MakeCurrent();
return false;
}
return true;
}, "Wait for song select is current");
AddWaitStep(5, "Wait for dim");
AddAssert("Screen is undimmed", () => songSelect.AssertUndimmed());
}