-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fix part of #3245 [A11y] Enabling AccessibilityChecks for QuestionPlayerActivityTest #4173
Conversation
@rt4914 I have got an error in tablet (Pixel-C API 28) to change the size of content_text_view but after changing it the tests were passed but the UI had changed and the content_item was shrunk. Could you please guide on me how to solve this |
|
Also if you need reply on anything please Assign me in |
Got it, Thanks!! |
@rt4914 PTAL |
Unassigning @Rohit1173 since a re-review was requested. @Rohit1173, please make sure you have addressed all review comments. Thanks! |
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.
@Rohit1173 Suggested changes:
- This PR is part of [A11y] Enable AccessibilityChecks #3245 and does solve the entire issue. So please rename this to "Fix part of " in title and description.
- This PR focuses on Exploration Player only. You should also check this for Question Player.
- Have a look at [A11Y] Feedback item should be atleast 48dp in size #3927 as you are actually solving that issue too (sort of duplicate). Make sure that QuestionPlayerTests also pass and also share the before/after screenshot of question player UI for this particular test in [A11Y] Feedback item should be atleast 48dp in size #3927 is focused on.
From code wise it looks correct but we should still check UI and question player.
@rt4914 updated the screenshots, PTAL, Thanks! |
Unassigning @Rohit1173 since a re-review was requested. @Rohit1173, please make sure you have addressed all review comments. Thanks! |
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.
LGTM, thanks.
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.
LGTM, thanks.
Explanation
Fix #3927 and Fix part of #3245 :Enable AccessibiltyChecks
Removed the
@DisableAccessibilityChecks
Annotation from the QuestionPlayerActivityTestThere are 2 tests with
@DisableAccessibilityChecks
Annotation in QuestionPlayerActivityTestfun testQuestionPlayer_terminalState_recyclerViewItemCount_countIsTwo()
andfun testQuestionPlayer_terminalState_recyclerView_contentItem_isNotEmpty()
and these were the screenshots after successfully running them
Device : Pixel 3a API 28
So after Fixing the
minheight
andminwidth
offeedback_text_view
infeedback_item.xml
to 48dp each and running again these were the results.Device : Pixel 3a API 28
After that I have tested the above tests for tablets, these were the screenshots after successfully running them
Device : Pixel C API 28
So to fix these failing tests, I have set the
minheight
andminwidth
ofcontent_text_view
incontent_item.xml
to 48dp eachAfter making these changes and running again, these were the results
Device : Pixel C API 28
Device : Pixel 3a API 28
UI CHANGES
Tests in StateFragmentTest.kt before the changes have been made (Device : Pixel 3A API 28)
Tests in StateFragmentTest.kt after the changes have been made (Device : Pixel 3A API 28)
UI CHANGES
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: