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
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ public void TestPlayerLoaderSettingsHover()
setupUserSettings();
AddStep("Start player loader", () => songSelect.Push(playerLoader = new TestPlayerLoader(player = new LoadBlockingTestPlayer { BlockLoad = true })));
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", () =>
{