When an error is encountered (duplicate email) on user creation the user experience is extremely confusing. It kicks you back to the new user page without any validation. I think the flash[:error] is set up to show on the next page instead of immediate one.
Technical Details
When an error occurs, the user should be shown the form they filled out with the appropriate validation error shown.
Acceptance Criteria
GIVEN
A user submits the new user form
WHEN
There is a validation error
THEN
The user is shown the form they filled out, with the values they provided
AND
The user is shown the validation errors appropriate
Description
When an error is encountered (duplicate email) on user creation the user experience is extremely confusing. It kicks you back to the new user page without any validation. I think the
flash[:error]
is set up to show on the next page instead of immediate one.Technical Details
When an error occurs, the user should be shown the form they filled out with the appropriate validation error shown.
Acceptance Criteria
Example