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

Fix #870: Lowfi Landscape HomeActivity #871

Merged
merged 3 commits into from
Mar 26, 2020
Merged

Fix #870: Lowfi Landscape HomeActivity #871

merged 3 commits into from
Mar 26, 2020

Conversation

rt4914
Copy link
Contributor

@rt4914 rt4914 commented Mar 24, 2020

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 in HomeFragmentPresenter and use following functions one by one. Make sure to uninstall your app if you are changing functions from StoryProgressTestHelper.
First Run - Without using StoryProgressTestHelper - you will see two PromotedStory.
Second Run - use markRecentlyPlayedForFractionsStory0Exploration0 from StoryProgressTestHelper - you will see one PromotedStory
Third Run - use markRecentlyPlayedForFirstExplorationInAllStoriesInFractionsAndRatios from StoryProgressTestHelper - you will see three PromotedStory.

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

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

app:roundedRectDrawableWithColor="@{viewModel.backgroundColor}">

<ImageView
android:id="@+id/imageView"
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this id.

Copy link
Contributor

@veena14cs veena14cs left a 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 veena14cs assigned rt4914 and unassigned veena14cs Mar 26, 2020
@rt4914
Copy link
Contributor Author

rt4914 commented Mar 26, 2020

testHomeActivity_recyclerViewIndex1_promotedCard_storyNameIsCorrect

@veena14cs all the test cases are passing. Can you please rerun them and if they fail can you post the error.

@rt4914 rt4914 assigned veena14cs and unassigned rt4914 Mar 26, 2020
@veena14cs
Copy link
Contributor

testHomeActivity_recyclerViewIndex1_promotedCard_storyNameIsCorrect

@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.

Copy link
Contributor

@veena14cs veena14cs left a comment

Choose a reason for hiding this comment

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

LGTM.

@veena14cs veena14cs assigned rt4914 and unassigned veena14cs Mar 26, 2020
@rt4914 rt4914 merged commit 6615d2f into develop Mar 26, 2020
@rt4914 rt4914 deleted the landscape-home branch March 26, 2020 08:40
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.

Lowfi Landscape HomeActivity
2 participants