android-fhir icon indicating copy to clipboard operation
android-fhir copied to clipboard

Espresso Test fails if Screen Size too small

Open omarismail94 opened this issue 2 years ago • 0 comments

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

omarismail94 avatar Jun 29 '22 16:06 omarismail94