Split out editor save steps to try and catch test failure

This commit is contained in:
Dean Herbert 2021-10-12 19:40:35 +09:00
parent 8291d74b68
commit 79ac64a088

View File

@ -41,11 +41,11 @@ namespace osu.Game.Tests.Visual.Editing
AddStep("Move to playfield", () => InputManager.MoveMouseTo(Game.ScreenSpaceDrawQuad.Centre)); AddStep("Move to playfield", () => InputManager.MoveMouseTo(Game.ScreenSpaceDrawQuad.Centre));
AddStep("Place single hitcircle", () => InputManager.Click(MouseButton.Left)); AddStep("Place single hitcircle", () => InputManager.Click(MouseButton.Left));
AddStep("Save and exit", () => AddAssert("Beatmap contains single hitcircle", () => editorBeatmap.HitObjects.Count == 1);
{
InputManager.Keys(PlatformAction.Save); AddStep("Save", () => InputManager.Keys(PlatformAction.Save));
InputManager.Key(Key.Escape);
}); AddStep("Exit", () => InputManager.Key(Key.Escape));
AddUntilStep("Wait for main menu", () => Game.ScreenStack.CurrentScreen is MainMenu); AddUntilStep("Wait for main menu", () => Game.ScreenStack.CurrentScreen is MainMenu);