-
Notifications
You must be signed in to change notification settings - Fork 521
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 #2587: testHomeActivity_allTopicsCompleted_displaysAllTopicCards() test not working #5330
Fix #2587: testHomeActivity_allTopicsCompleted_displaysAllTopicCards() test not working #5330
Conversation
…trait, landscape] and tablets[portrait, landscape].
PTAL @adhiamboperes |
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 @deonwaju!
In addition to my inline comments, can you please share a screenshot that shows you ran these tests on an emulator/device and they passed? The issues describes the tests failing in tablet so we need proof that they now pass in tablets.
One more thing, was the issue reproducible before you wrote the fix? I find it strange that the original test had no prior configurations that limited it to running on robolectric, or ignoring it yet we had no reported failures(It's great that this PR increases the test coverage, but I'd like to check).
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
Ok got it, and yes the issue was reproducible, I took your advice to test on a larger tablet screen size, so used a 10" pixel C tablet, and I was able to reproduce the issue. Turns out that the test passes only when the tablet is in portrait mode, in landscape mode it fails. That was the issue |
@adhiamboperes A. Mobile portrait test B. Mobile landscape test C. Tablet portrait test D. Tablet landscape test |
@deonwaju, the tests look good. Please complete the test name suggestions and resubmit for approval. |
PTAL @adhiamboperes |
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 @deonwaju! This LGTM.
Explanation
Fix for #2587: split test method into 4 versions, [mobilePortrait, mobileLandscape, tabletPortrait, tabletLandscape]
A. Mobile potrait test
B. Mobile Lanscape
C. Tablet Portrait
D. Tablet Landscape test.
Essential Checklist