Skip to content

Commit

Permalink
Move Keys tests to correct folder (#860)
Browse files Browse the repository at this point in the history
Add missing tests for HideKeyboardWithStrategyAndKey
  • Loading branch information
Dor-bl authored Oct 28, 2024
1 parent 05e2e2b commit 85e400c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,21 @@ public void HideKeyBoardWithKeyTestCase()
Assert.That(!is_visible);
}


[TestCase("press", "Done", TestName = "HideKeyboardWithStrategyPressAndKeyDone")]
[TestCase("swipeDown", null, TestName = "HideKeyboardWithStrategySwipeDownAndNoKey")]
[TestCase("tapOut", "Hide", TestName = "HideKeyboardWithStrategyTapOutAndKeyHide")]
public void HideKeyboardWithStrategyAndKeyTestCase(string strategy, string key)
{

_driver.StartActivity("io.appium.android.apis", ".app.CustomTitle");
var text_edit_btn = By.Id("io.appium.android.apis:id/left_text_edit");
_driver.FindElement(text_edit_btn).Clear();
_driver.FindElement(text_edit_btn).Click();
_driver.HideKeyboard(strategy, key);
bool is_visible = _driver.IsKeyboardShown();
Assert.That(!is_visible);
}

}
}

0 comments on commit 85e400c

Please sign in to comment.