Ensure track is stopped on player completion

This commit is contained in:
Bartłomiej Dach
2021-11-11 15:45:10 +01:00
parent 385df51b06
commit c465bcb821
2 changed files with 13 additions and 0 deletions

View File

@ -106,7 +106,9 @@ 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);
AddUntilStep("wait for return to editor", () => Stack.CurrentScreen is Editor);
AddAssert("track stopped", () => !Beatmap.Value.Track.IsRunning);
}
public override void TearDownSteps()