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:
parent
8fc90bb9a0
commit
3208f1dde8
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user