-
Notifications
You must be signed in to change notification settings - Fork 511
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 #870: Lowfi Landscape HomeActivity #871
Conversation
app:roundedRectDrawableWithColor="@{viewModel.backgroundColor}"> | ||
|
||
<ImageView | ||
android:id="@+id/imageView" |
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.
Change this id.
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.
One of the test case is failing testHomeActivity_recyclerViewIndex1_promotedCard_storyNameIsCorrect() please check.
@veena14cs all the test cases are passing. Can you please rerun them and if they fail can you post the error. |
It is passing now. May be I had some build issue. |
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.
Explanation
Fixes #870
Mock: https://xd.adobe.com/view/ee9e607b-dbd6-4372-48dc-b687d32af3da-98af/screen/0dbdd000-6738-4f6b-9026-0d16737b7baa/HP-Home-Page-
Portrait: https://xd.adobe.com/view/e8aa4198-3940-47f9-514a-f41cc54457f6-9e9b/screen/ce2a96de-2c98-41f9-91e6-6ca0d8135fb2/HP-Home-Page-Card-3-
To test this you can inject
StoryProgressTestHelper
class inHomeFragmentPresenter
and use following functions one by one. Make sure to uninstall your app if you are changing functions fromStoryProgressTestHelper
.First Run - Without using
StoryProgressTestHelper
- you will see twoPromotedStory
.Second Run - use markRecentlyPlayedForFractionsStory0Exploration0 from
StoryProgressTestHelper
- you will see onePromotedStory
Third Run - use markRecentlyPlayedForFirstExplorationInAllStoriesInFractionsAndRatios from
StoryProgressTestHelper
- you will see threePromotedStory
.Reference code: https://gist.github.com/rt4914/5258375c8d2cca81b6a5b62ccab8e143#file-homefragmentpresenter-kt-L92 (Line 92-93)
Also, #872 issues has been filed to make sure that in future we follow some standard format for naming ids too the views. For this PR it has not been fixed as it does not harm the code in any way at the same time if we made that change it would introduce changes in more number of files.
Checklist