-
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 #3780: [RTL] Image region selection. #3815
Fix #3780: [RTL] Image region selection. #3815
Conversation
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.
For tests I will defer to @anandwana001 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.
Thanks @veena14cs! LGTM though I think we can & should re-enable the tests. See my comment.
@@ -280,6 +281,68 @@ class ImageRegionSelectionInteractionViewTest { | |||
} | |||
} | |||
|
|||
@Test | |||
// TODO(#1611): Fix ImageRegionSelectionInteractionViewTest | |||
@Ignore |
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.
Actually, given this can we use OppiaTestRule and RunOn(TestPlatform.ESPRESSO)
here instead of ignoring? We don't actually need to ignore tests failing for specific platforms anymore.
Thanks @BenHenning I have re-enabled tests and updated screenshots in the PR description. |
@@ -118,7 +121,7 @@ class ImageRegionSelectionInteractionViewTest { | |||
|
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.
You had to set the oppia test rule, else the RunOn annotation will not work.
@get:Rule
val oppiaTestRule = OppiaTestRule()
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.
HelpFragmentTest
for reference
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.
I tested it without this Rule and I I wonder how it worked. Added it now it shouldn't break anywhere. Thanks for reference.
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 from code perspective other than the issue @anandwana001 mentioned.
@anandwana001 deferring to you to verify CI is fully passing before merging.
Thanks for quick fix @veena14cs.
Thanks @BenHenning. |
Assign me once finalize. LGTM for merge. |
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 #3780. This PR fixes Image region selection issues in RTL layouts when tapping around the image.
Screenshot LTR and RTL
Mobile:
........
.......
Screenshot for Tests that pass in Expresso after RTL code.
Screenshot for Tests that fail in Expresso before RTL code.
Note: Not tested on Roboelectric added a todo comment in the test.
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: