Commit abc9c7b9 authored by Santino Campos's avatar Santino Campos

Write story to be tested by functional test

parent f8563735
from selenium import webdriver
import unittest
class NewOrderToCheckTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.quit()
def test_can_display_an_order_then_recipe_and_ingredients_of_order(self):
#Thibault is working at The Good Place. Today his work consists of adding an order which involves a completely new recipe of which one ingredient has never been ordered by the store before
#Thibault first enters a new order into the website
#He goes to the order creation form of the website
#Test content of orders_create_form
#He then goes to the list of all orders in the website to check if his inputted order is still there
#Test content of orders_list
#He then go to the page of the specific order he just inputted
#Test content of orders_detail
#He then notices that the order is lacking a specific customisation, so he updates the order information
#Test content of orders_update_form
#Thibault then enters the new recipe into the website
#He goes to the recipe creation form of the website
#Test content of recipes_create_form
#He then goes to the list of all recipes in the website to check if his inputted recipe is still there
#Test content of recipes_list
#He then go to the page of the specific recipe he just inputted
#Test content of recipes_detail
#He then notices that the recipe is lacking an ingredient in its information, so he updates the recipe information
#Test content of recipes_update_form
#Thibault then enters the new ingredient into the website database
#He goes to the ingredient creation form of the website
#Test content of ingedients_create_form
#He then goes to the list of all ingredientss in the website to check if his inputted ingredient is still there
#Test content of ingredients_list
#He then go to the page of the specific ingredient he just inputted
#Test content of ingredients_detail
#He then notices that the ingredien is labelled as having 5 units on hand, whereas the establishement never ordered this recipe before, he then updates its on-hand count to zero
#Test content of ingredients_update_form
#He then closes the website
self.fail('Finish the test!')
if __name__ == '__main__':
unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment