-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typeTo(), an interaction that honors the EditText restrictions li…
…ke maxLength and textFilter * Issue #395: Add BaristaEditTextInteractions.typeTo() * Add a new typeTo() Text Interaction, similar to writeTo(), but it uses Espresso's typeText() instead of replaceText(). * Add KotlinDoc/JavaDoc to the Text Interaction methods, for users to tell the difference between writeTo() and typeTo(). * #395: typeTo() UI tests: Add constrained EditTexts * Add 3 new EditTexts to the layout, for UI unit tests of typeTo() * The EditTexts have maxLength of 10 characters, and don't allow spaces, and only allow ASCII text or digits 0-9 * More info about EditText filters: https://stackoverflow.com/questions/33993041/android-disable-space-only-for-edittext * Issue #395: Add 3 UI unit tests for typeTo() * Check that typeTo() will constrain and limit the typed characters to ASCII and digits 0-9, as per the EditText digits attribute. * Check that typeTo() will limit the length of the typed text to 10 characters, as per the EditText maxLength attribute. * Check that typeTo() will disallow typing spaces into the EditText, if the textFilter does not allow it. * Check that the auto-scroll to the EditText will work when typeTo() is called.
- Loading branch information
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters