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 #3905: A11y flow fix for ProfileProgressHeader #3931

Merged
merged 4 commits into from
Oct 21, 2021

Conversation

rt4914
Copy link
Contributor

@rt4914 rt4914 commented Oct 14, 2021

Explanation

Fix #3905: A11y flow fix for ProfileProgressHeader

Earlier the flow for profile progress was really bad. This PR tries to improve that experience.

Issue

incorrect_flow.mp4

New Flow

device-2021-10-14-233854.mp4

Espresso Tests are passing

Screenshot 2021-10-21 at 4 01 58 PM

Screenshot 2021-10-21 at 4 04 43 PM

Screenshot 2021-10-21 at 4 05 27 PM

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

@BenHenning
Copy link
Member

Hi @rt4914. Apologies, will need to look at this tomorrow.

@BenHenning
Copy link
Member

Sorry, I'll need to review this on Monday.

Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @rt4914! This seems sensible--is there any way to add tests for the changes, though? Also, any idea on the test failure; is it related to this PR?

@BenHenning BenHenning assigned rt4914 and unassigned BenHenning Oct 19, 2021
@rt4914 rt4914 assigned BenHenning and unassigned rt4914 Oct 21, 2021
@rt4914
Copy link
Contributor Author

rt4914 commented Oct 21, 2021

Thanks @rt4914! This seems sensible--is there any way to add tests for the changes, though? Also, any idea on the test failure; is it related to this PR?

@BenHenning I have tried adding test cases and I am unable to think of any other ways we can test it but at least this strategy makes sure if something changes the test case fails.

All tests are passing now.

Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @rt4914. I think the new tests are a bit change-detectory, but they're probably the best we can do since there isn't a way to simulate a11y flows in Robolectric so far as I know. This will for sure ensure that we don't regress the actual fix, but won't necessarily prevent other failures occurring in the future. We'll need to rely on manual testing for those.

@BenHenning
Copy link
Member

Merging since everything seems addressed now. Thanks @rt4914!

@BenHenning BenHenning merged commit 22f9260 into develop Oct 21, 2021
@BenHenning BenHenning deleted the a11y-profile-progress-header branch October 21, 2021 23:46
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.

[A11Y] ProfileProgressActivity flow needs to be improved
2 participants