Story #89 Fix Negative Duration Bug | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki
End User Documentation
Dev Testing Instructions
Make sure you are on the most recent version of the dev-fix-negative-duration branch.
Start your dev environment and log in with development2 so you have all permissions.
Navigate to the Admin -> Events page
Click the button in the toolbox to navigate to the event page.
On the Manage Preset Events page make sure there is a button to create a new preset and that there is a table showing the current presets.
Click "New Event" and try to create an event by filling out all of the required fields but giving it a negative time duration. Ensure that an error is flashed and that the event is not created.
Create a valid event and ensure that you are redirected to the previous page and that you now see the event in the table.
Edit the event you just created and make sure the page loads pre-populated with all the information that you set when you created it. Edit the event and make sure it updates. If you clear out the required fields and try to save you should get an error.
Ensure that you can delete the event. Make sure that when you delete the event that the join table records that tie tools to it are also deleted from the database.
Ensure there are no errors in the console throughout your testing and that the page is responsive on all screen sizes.