Resolve broken test scene

This commit is contained in:
smoogipoo
2020-04-23 10:37:05 +09:00
parent 7796593b2c
commit 40f11ed15c
2 changed files with 7 additions and 4 deletions

View File

@ -36,9 +36,11 @@ namespace osu.Game.Tests.Visual
{
base.SetUpSteps();
AddStep("load editor", () => LoadScreen(Editor = new Editor()));
AddStep("load editor", () => LoadScreen(Editor = CreateEditor()));
AddUntilStep("wait for editor to load", () => Editor.ChildrenOfType<HitObjectComposer>().FirstOrDefault()?.IsLoaded == true
&& Editor.ChildrenOfType<TimelineArea>().FirstOrDefault()?.IsLoaded == true);
}
protected virtual Editor CreateEditor() => new Editor();
}
}