mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Fix intro tests not asserting pass or working at all
This commit is contained in:
parent
f414b7fbb6
commit
880d138a47
@ -64,6 +64,8 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
|
||||
introStack.Push(CreateScreen());
|
||||
});
|
||||
|
||||
AddUntilStep("wait for menu", () => introStack.CurrentScreen is MainMenu);
|
||||
}
|
||||
|
||||
protected abstract IScreen CreateScreen();
|
||||
|
@ -140,7 +140,7 @@ namespace osu.Game.Screens.Menu
|
||||
preloadSongSelect();
|
||||
}
|
||||
|
||||
[Resolved]
|
||||
[Resolved(canBeNull: true)]
|
||||
private OsuGame game { get; set; }
|
||||
|
||||
private void confirmAndExit()
|
||||
@ -148,7 +148,7 @@ namespace osu.Game.Screens.Menu
|
||||
if (exitConfirmed) return;
|
||||
|
||||
exitConfirmed = true;
|
||||
game.PerformFromScreen(menu => menu.Exit());
|
||||
game?.PerformFromScreen(menu => menu.Exit());
|
||||
}
|
||||
|
||||
private void preloadSongSelect()
|
||||
|
Loading…
Reference in New Issue
Block a user