1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Fix weird edge case in TestSceneIntroWelcome

This commit is contained in:
Dean Herbert 2021-10-07 19:58:34 +09:00
parent 189358240d
commit b88d4f1913
2 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Tests.Visual.Menus
}
[Test]
public void TestPlayIntro()
public virtual void TestPlayIntro()
{
AddStep("restart sequence", () =>
{

View File

@ -12,8 +12,10 @@ namespace osu.Game.Tests.Visual.Menus
{
protected override IntroScreen CreateScreen() => new IntroWelcome();
public TestSceneIntroWelcome()
public override void TestPlayIntro()
{
base.TestPlayIntro();
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);