Ensure editor test player is exited on completion

This commit is contained in:
Bartłomiej Dach
2021-11-11 15:25:58 +01:00
parent 6ce1a78723
commit 385df51b06
2 changed files with 12 additions and 2 deletions

View File

@ -106,8 +106,7 @@ namespace osu.Game.Tests.Visual.Editing
EditorPlayer editorPlayer = null;
AddUntilStep("player pushed", () => (editorPlayer = Stack.CurrentScreen as EditorPlayer) != null);
AddAssert("beatmap has 1 object", () => editorPlayer.Beatmap.Value.Beatmap.HitObjects.Count == 1);
AddStep("exit player", () => editorPlayer.Exit());
AddUntilStep("current screen is editor", () => Stack.CurrentScreen is Editor);
AddUntilStep("wait for return to editor", () => Stack.CurrentScreen is Editor);
}
public override void TearDownSteps()