Skip to content
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

Merged
merged 9 commits into from
Aug 1, 2024
Merged

Conversation

scolsen
Copy link
Contributor

@scolsen scolsen commented Jul 26, 2024

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

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.
Copy link
Contributor

@sufyanAbbasi sufyanAbbasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!!

Copy link
Member

@shobhitagarwal1612 shobhitagarwal1612 left a 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?

@scolsen
Copy link
Contributor Author

scolsen commented Jul 29, 2024

Weirdly enough, when I test this manually the date/time pickers are indeed visible, but now the tests are failing.

@scolsen
Copy link
Contributor Author

scolsen commented Jul 29, 2024

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?

scolsen and others added 7 commits August 1, 2024 10:02
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
@scolsen
Copy link
Contributor Author

scolsen commented Aug 1, 2024

Well, the gcb failed, and it's unclear to me why, but I've confirmed that the tests are working locally.

@scolsen scolsen merged commit fd197fc into google:master Aug 1, 2024
4 checks passed
@scolsen scolsen deleted the 2516 branch August 1, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Multiple choice tasks] "Other" text field obscured by keyboard
5 participants