Open kimberly-bird opened 5 years ago
This section is null because the user will always be greeted with the login page. Therefore, they must be authenticated to access the app .
After Logging in, the user will be presented with a Sell a product button in the menu/navbar. When clicked, they will be linked to the sell_a_product_form.html template (remember we are doing forms by class).
After filling out the form to sell the product (valid information in the form fields). When the user clicks the Sell button they will be routed to the product_detail.html template (this is associated with the product_detail.view).
If the form is filled out with invalid information, the user will be notified with an error for each of the invalid values. (curious how this is done, I'll try to research a bit and come back to this)
Models/Tables involved:
--from sell button in navbar--
'Add Product' View 'Add Product' Template Fields must all be valid for submission
--adds the product to detail page--
Given the user is not authenticated When any view renders Then the Sell a Product affordance will not be visible
Given the user is authenticated When the user clicks on the Sell a product button in the menu bar Then the user will be presented with a product form
Given the user has filled in all fields of the product form with valid information When the user clicks the Sell button Then the user will be redirected to the product detail view for that product
Given the user has filled in all fields of the product form with any invalid information When the user clicks the Sell button Then the user will be immediately notified with error information for each invalid value