-
Notifications
You must be signed in to change notification settings - Fork 302
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
Made the selection drop-downs not editable #2256
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an instrumentation test here:
https://github.com/google/android-fhir/blob/master/datacapture/src/androidTest/java/com/google/android/fhir/datacapture/test/views/DropDownViewHolderFactoryEspressoTest.kt
to test that if a user tries to edit the text, it does not work?
Hi @omarismail94, I have added a test case that checks if the user is able to type or not. Since when the user tries to type text, it will throw an exception as it is not editable. |
Thanks @kanahia1 ! The CLA check is failing, can you resolve that here: https://cla.developers.google.com/clas |
Hi @omarismail94 , I have submitted my CLA. |
thanks @kanahia1, GitHib Actions is failing due to Spotless failue: https://github.com/google/android-fhir/actions/runs/6531828200/job/17733797033?pr=2256 can you run spotless apply and upload the commit? |
Thanks for fixing this @kanahia1. Usually with this type of change, we would like to see before/after screenshots or before/after videos. This makes the review process much easier. |
Oh sorry @jingtang10 , I will try to upload screen recording/ screenshots from now on! Here's a video demonstrating the non-edit behavior of drop-downs. WhatsApp.Video.2023-10-17.at.18.49.39_0d2064f4.mp4 |
Hi @omarismail94 , I have made all the requested changes can you please review it |
...java/com/google/android/fhir/datacapture/test/views/DropDownViewHolderFactoryEspressoTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks very much!
@kanahia1 the change you have is causing two instrumentation test to fail:
both fail due to:
I can replicate the test failure on my local machine. Can you do so on yours, and fix the broken tests? |
closing this in favour of #2393 |
Pull request was closed
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2228
Description
Made the selection drop-downs not editable
Alternative(s) considered
N/A
Type
Bug fix
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.