mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Select button using its index in test
This commit is contained in:
parent
17aeb0ec19
commit
0ec608ec5d
@ -219,7 +219,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
|
||||
AddStep("Click gameplay scene button", () =>
|
||||
{
|
||||
InputManager.MoveMouseTo(skinEditor.ChildrenOfType<SkinEditorSceneLibrary.SceneButton>().First(b => b.Text == "Gameplay"));
|
||||
InputManager.MoveMouseTo(skinEditor.ChildrenOfType<SkinEditorSceneLibrary.SceneButton>().Skip(1).First());
|
||||
InputManager.Click(MouseButton.Left);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user