mirror of
https://github.com/ppy/osu
synced 2025-02-13 16:47:38 +00:00
Split out editor save steps to try and catch test failure
This commit is contained in:
parent
8291d74b68
commit
79ac64a088
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user