android-fhir
android-fhir copied to clipboard
Espresso Test fails if Screen Size too small
Describe the bug In the QuestionnaireItemDialogMultiSelectViewHolderFactoryEspressoTest test class, the test involves clicking on text. Because my screen is tiny, "Coding 3" is not fully!! within view, and the test fails with the error: No views in hierarchy found matching: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Coding 3"
Component Core library, SDC library, reference app, or SDC gallery app
To Reproduce
Steps to reproduce the behavior:
Setup screen with small size.
Run: ./gradlew datacapture:connectedDebugAndroidTest
Expected behavior A clear and concise description of what you expected to happen.
Regardless of screensize, test should work
Screenshots If applicable, add screenshots to help explain your problem.
Would you like to work on the issue? Sure