1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Attempt to fix test better

This commit is contained in:
Dean Herbert 2024-03-16 12:15:12 +08:00
parent a598ea5b97
commit c0ae94dc60
No known key found for this signature in database

View File

@ -89,7 +89,11 @@ namespace osu.Game.Tests.Visual.Background
setupUserSettings(); setupUserSettings();
AddStep("Start player loader", () => songSelect.Push(playerLoader = new TestPlayerLoader(player = new LoadBlockingTestPlayer { BlockLoad = true }))); AddStep("Start player loader", () => songSelect.Push(playerLoader = new TestPlayerLoader(player = new LoadBlockingTestPlayer { BlockLoad = true })));
AddUntilStep("Wait for Player Loader to load", () => playerLoader?.IsLoaded ?? false); AddUntilStep("Wait for Player Loader to load", () => playerLoader?.IsLoaded ?? false);
AddAssert("Background retained from song select", () => songSelect.IsBackgroundCurrent()); AddAssert("Background retained from song select", () =>
{
InputManager.MoveMouseTo(playerLoader);
return songSelect.IsBackgroundCurrent();
});
AddUntilStep("Screen is dimmed and blur applied", () => AddUntilStep("Screen is dimmed and blur applied", () =>
{ {