diff --git a/osu.Desktop.VisualTests/AutomatedVisualTestGame.cs b/osu.Desktop.VisualTests/AutomatedVisualTestGame.cs index 0bce2ddc67..b08588b29c 100644 --- a/osu.Desktop.VisualTests/AutomatedVisualTestGame.cs +++ b/osu.Desktop.VisualTests/AutomatedVisualTestGame.cs @@ -8,8 +8,12 @@ namespace osu.Desktop.VisualTests { public class AutomatedVisualTestGame : OsuGameBase { - public AutomatedVisualTestGame() + protected override void LoadComplete() { + base.LoadComplete(); + + // Have to construct this here, rather than in the constructor, because + // we depend on some dependencies to be loaded within OsuGameBase.load(). Add(new TestRunner(new TestBrowser())); } }