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:
parent
263972a048
commit
6bf831b96f
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user