mirror of https://github.com/ppy/osu
Actually click the gameplay scene button than `TriggerClick`
This commit is contained in:
parent
a5e5172b91
commit
47ce087694
|
@ -148,7 +148,11 @@ public void TestModOverlayClosesOnOpeningSkinEditor()
|
|||
|
||||
private void switchToGameplayScene()
|
||||
{
|
||||
AddStep("Click gameplay scene button", () => skinEditor.ChildrenOfType<SkinEditorSceneLibrary.SceneButton>().First(b => b.Text == "Gameplay").TriggerClick());
|
||||
AddStep("Click gameplay scene button", () =>
|
||||
{
|
||||
InputManager.MoveMouseTo(skinEditor.ChildrenOfType<SkinEditorSceneLibrary.SceneButton>().First(b => b.Text == "Gameplay"));
|
||||
InputManager.Click(MouseButton.Left);
|
||||
});
|
||||
|
||||
AddUntilStep("wait for player", () =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue