Commit e0bb0327 authored by Patrick James Ong's avatar Patrick James Ong

Fixed new recipe and order creation in functional tests

parent a2d71423
......@@ -55,6 +55,7 @@ class NewVisitorTest(unittest.TestCase):
self.assertIn('Recipes - Create', self.browser.title)
self.assertIn('', self.browser.find_element_by_ID('new_recipe_name').text)
self.assertIn('', self.browser.find_element_by_ID('new_recipe_ingredient').text)
self.assertIn('', self.browser.find_element_by_ID('new_recipe_quantity').text)
# ORDERS
......@@ -77,8 +78,10 @@ class NewVisitorTest(unittest.TestCase):
self.browser.get('http://localhost:8000/ingredients/new')
self.assertIn('Ingredients - Create', self.browser.title)
self.assertIn('', self.browser.find_element_by_ID('new_order_name').text)
self.assertIn('', self.browser.find_element_by_ID('new_order_quantity').text)
self.assertIn('', self.browser.find_element_by_ID('new_customer_name').text)
self.assertIn('', self.browser.find_element_by_ID('new_size').text)
self.assertIn('', self.browser.find_element_by_ID('new_base').text)
self.assertIn('', self.browser.find_element_by_ID('new_customization').text)
if __name__ == '__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