Actually click the gameplay scene button than `TriggerClick`

This commit is contained in:
Salman Ahmed 2022-06-18 18:32:02 +03:00
parent a5e5172b91
commit 47ce087694
1 changed files with 5 additions and 1 deletions

View File

@ -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", () =>
{