-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Espresso Test fails if Screen Size too small #1482
Comments
In #2197 I have found that this problem appears to frequently make PRs "red", IMHO it would be good to fix this ASAP. Until it is, IMHO it's a lot less confusing not to run that test anymore; see #2203. BTW the exact error seen there was: Nexus6P-24-en_US-portrait : com.google.android.fhir.datacapture.test.views.QuestionnaireItemDialogMultiSelectViewHolderFactoryEspressoTest#selectOther_shouldScrollDownToShowAddAnotherAnswer (1) androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: view.getId() is <2131230791/com.google.android.fhir.datacapture.test:id/add_another> |
Here for #2316 that
|
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
The text was updated successfully, but these errors were encountered: