mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Avoid test failures on non-triangle intro tests
This commit is contained in:
parent
52f1c2bfdb
commit
6a21d58325
@ -20,6 +20,8 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
[Cached]
|
||||
private OsuLogo logo;
|
||||
|
||||
protected abstract bool IntroReliesOnTrack { get; }
|
||||
|
||||
protected OsuScreenStack IntroStack;
|
||||
|
||||
private IntroScreen intro;
|
||||
@ -103,7 +105,9 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
});
|
||||
|
||||
AddUntilStep("wait for menu", () => intro.DidLoadMenu);
|
||||
AddUntilStep("wait for notification", () => notifications.UnreadCount.Value == 1);
|
||||
|
||||
if (IntroReliesOnTrack)
|
||||
AddUntilStep("wait for notification", () => notifications.UnreadCount.Value == 1);
|
||||
|
||||
AddStep("uninstall delegate", () => trackResetDelegate?.Cancel());
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
[TestFixture]
|
||||
public class TestSceneIntroCircles : IntroTestScene
|
||||
{
|
||||
protected override bool IntroReliesOnTrack => false;
|
||||
protected override IntroScreen CreateScreen() => new IntroCircles();
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
[TestFixture]
|
||||
public class TestSceneIntroTriangles : IntroTestScene
|
||||
{
|
||||
protected override bool IntroReliesOnTrack => true;
|
||||
protected override IntroScreen CreateScreen() => new IntroTriangles();
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
[TestFixture]
|
||||
public class TestSceneIntroWelcome : IntroTestScene
|
||||
{
|
||||
protected override bool IntroReliesOnTrack => false;
|
||||
protected override IntroScreen CreateScreen() => new IntroWelcome();
|
||||
|
||||
public override void TestPlayIntro()
|
||||
|
Loading…
Reference in New Issue
Block a user