1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 03:02:55 +08:00

Fix potential transitiontest failure on local unit tests

This commit is contained in:
David Zhao 2019-03-14 16:40:25 +09:00
parent 8fc90bb9a0
commit 3208f1dde8

View File

@ -205,6 +205,7 @@ namespace osu.Game.Tests.Visual
performFullSetup(); performFullSetup();
var results = new FadeAccessibleResults(new ScoreInfo { User = new User { Username = "osu!" } }); var results = new FadeAccessibleResults(new ScoreInfo { User = new User { Username = "osu!" } });
AddStep("Transition to Results", () => player.Push(results)); AddStep("Transition to Results", () => player.Push(results));
AddUntilStep(results.IsCurrentScreen, "Wait for results is current");
waitForDim(); waitForDim();
AddAssert("Screen is undimmed, original background retained", () => AddAssert("Screen is undimmed, original background retained", () =>
songSelect.IsBackgroundUndimmed() && songSelect.IsBackgroundCurrent() && results.IsBlurCorrect()); songSelect.IsBackgroundUndimmed() && songSelect.IsBackgroundCurrent() && results.IsBlurCorrect());