-
Notifications
You must be signed in to change notification settings - Fork 121
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
UI: Constrain task layouts to avoid overlap. #2582
Conversation
Fixes google#2516 by constraining our task container to the position of the action button dock. This ensures long multiple choice tasks aren't covered by the action buttons—the scroll region is limited to viewable area above the action button drawer.
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.
Thank you!!!
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.
Some unit tests are failing. Can you please check?
Weirdly enough, when I test this manually the date/time pickers are indeed visible, but now the tests are failing. |
Ok, failure stems from height="0dp", but this is what we want for actual rendering purposes. Any ideas how/why roboelectric/espresso fails to perform tasks on these kinds of views? |
The previous change (setting the task container layout to 0dp) causes espresso actions to fail in our tests on these views. Normally, android computes the height correctly given view constraints, but this doesn't appear to take place in our tests. For now, fix this by forcing the view to have a height of 1, so that the action may be performed.
* Upgrade versioner plugin * Fix gitversioner path
* Rename unit test target * Always generate code coverage report * Run tests against devDebug * Update path of report * Upgrade versioner version * Upgrade versioner plugin * Fix gitversioner path
Well, the gcb failed, and it's unclear to me why, but I've confirmed that the tests are working locally. |
Fixes #2516 by constraining our task container to the position of the action button dock. This ensures long multiple choice tasks aren't covered by the action buttons—the scroll region is limited to viewable area above the action button drawer.
Screen.Recording.2024-07-26.at.3.05.25.PM.mov