mirror of
https://github.com/ppy/osu.git
synced 2025-02-09 18:45:04 +08:00
Merge pull request #8431 from peppy/fix-intro-tests
Fix intro tests not asserting pass or working at all
This commit is contained in:
commit
e7f32d951d
@ -64,6 +64,8 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
|
|
||||||
introStack.Push(CreateScreen());
|
introStack.Push(CreateScreen());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
AddUntilStep("wait for menu", () => introStack.CurrentScreen is MainMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract IScreen CreateScreen();
|
protected abstract IScreen CreateScreen();
|
||||||
|
@ -140,7 +140,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
preloadSongSelect();
|
preloadSongSelect();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved(canBeNull: true)]
|
||||||
private OsuGame game { get; set; }
|
private OsuGame game { get; set; }
|
||||||
|
|
||||||
private void confirmAndExit()
|
private void confirmAndExit()
|
||||||
@ -148,7 +148,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
if (exitConfirmed) return;
|
if (exitConfirmed) return;
|
||||||
|
|
||||||
exitConfirmed = true;
|
exitConfirmed = true;
|
||||||
game.PerformFromScreen(menu => menu.Exit());
|
game?.PerformFromScreen(menu => menu.Exit());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void preloadSongSelect()
|
private void preloadSongSelect()
|
||||||
|
Loading…
Reference in New Issue
Block a user