1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 08:23:20 +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();
var results = new FadeAccessibleResults(new ScoreInfo { User = new User { Username = "osu!" } });
AddStep("Transition to Results", () => player.Push(results));
AddUntilStep(results.IsCurrentScreen, "Wait for results is current");
waitForDim();
AddAssert("Screen is undimmed, original background retained", () =>
songSelect.IsBackgroundUndimmed() && songSelect.IsBackgroundCurrent() && results.IsBlurCorrect());