-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/steven+yoto vsr personal info #24
Feature/steven+yoto vsr personal info #24
Conversation
…d martial to marital
…t end api requests imported and adjusted
…d a document to the mongo database
…, and continued styling
…, and continued styling
…b.com/TritonSE/PAP-Inventory-Processing into feature/steven+yoto-vsr-personal-info
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, I made some minor fixes (mostly CSS) but overall great job!
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! I stress tested a lot and found some bugs that all look good now
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.
For the most part it looks good, I have few notes that I'm not sure need to be fixed but I will leave it here case.
- You are allowed to be "single" but also have a spouse name.
- When you enter that you have 100 children, it states "This field must be a number no greater than 100," even though 100 should be valid.
Aside from these it looks good!
Thanks @holychickencow , nice catches! I just pushed some fixes to address your comments, we're good to merge now! |
Tracking Info
Resolves #9
Changes
-Added a MongoDB schema for storing VSR form submissions
-Set up POST route for VSR
-Added front-end for submitting a VSR
-Added front-end side validation functions (currently unused)
Testing
-Front-end validation functions were tested using unit tests in frontend/tests
-Rest of the features were tested end-to-end:
-Load up both the front end and the back end
-Go to http://localhost:3000/vsr
-Leaving out any required field will result in the field failing to submit
-Providing invalid data, such as inputting strings for age, will result in an error from the back end.
-Submitting a valid form will have it show up in the MongoDB database
This was done various times, with different inputs and leaving different fields empty.
Note that MongoDB may take a few moments to update.
Confirmation of Change
Missing fields
Error upon invalid input
Successful form submission