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

Navigator feedback #84

Merged
merged 1 commit into from
Dec 8, 2020
Merged

Navigator feedback #84

merged 1 commit into from
Dec 8, 2020

Conversation

jasalisbury
Copy link

Description of change
Address feedback from HHS#190

How to test

  1. Pull down code and start server
  2. Go to activity report page
  • Selecting gratnee vs non-grantee changes the label name for "grantee name(s)"
  • Color contrast for the side nave page state has been increased
  • Page title is most specific to least specific

Notes

It might be worth it to get HHS#159 finished soon to prevent accessibility issues sooner.

Issue(s)

Checklist

  • [n/a] Meets issue criteria
  • Code tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • [n/a] Documentation updated

 * Change navigator status colors to be more accessible
 * Page titles are now most specific to least specific
 * Add navigator test making sure "complete" state is shown
 * Fix cucumber test to look for proper label
 * Activity report uses proper label for "grantee/non-grantee name(s)"
userEvent.click(screen.getByRole('button', { name: 'Continue' }));
await screen.findByTestId('second');
const navItem = await screen.findByText('first page');
await waitFor(() => expect(within(navItem.nextSibling).getByText('Complete')).toBeVisible());
Copy link

Choose a reason for hiding this comment

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

This actually confused me more. Why is this first step complete when it was "in progress" during the other test?

Copy link
Author

Choose a reason for hiding this comment

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

In the first test the user fills out some of the first page but never completes the first page by clicking the Continue button, they navigate via the side navigation to the second page. Pages are "Complete" only when the Continue button is pressed. The continue button is disabled unless the form is valid (all required fields have valid values).

In the second test the first page is valid because there are no required form fields, so the Continue button is active and sets the first page as "Complete" when clicked.

I decided against setting pages as "Complete" automatically when the form is valid. If we automatically set the form to valid after all required fields have valid values there is the potential for users to miss filling in optional fields.

Copy link

Choose a reason for hiding this comment

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

Ahhhh, ok.

I'm not 100% certain I like that limitation of only switching if you navigate with the button and not the nav menu, but I definitely see your point about optional fields so it's something we should address with more research and another story.

Copy link

@rahearn rahearn left a comment

Choose a reason for hiding this comment

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

🎉

@jasalisbury jasalisbury merged commit 24832d7 into main Dec 8, 2020
@jasalisbury jasalisbury deleted the js-navigator-feedback branch December 8, 2020 18:57
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.

2 participants