Commit 950ce4d1 authored by Lance Michael O. Co's avatar Lance Michael O. Co 😢

fixed untracked files

parent dacb88d7
"virtualenv/" geckodriver.exe
"superlists/" "geckodriver.log
"geckodriver.exe" venv/
"geckodriver.log" __pycache__
"venv/"
"__pycache__"
"*.pyc" "*.pyc"
...@@ -28,6 +28,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -28,6 +28,7 @@ class NewVisitorTest(unittest.TestCase):
def test_can_see_and_use_ingredients_page(self): def test_can_see_and_use_ingredients_page(self):
#user clicks on ingredients page #user clicks on ingredients page
self.browser.get('http://localhost:8000') self.browser.get('http://localhost:8000')
ingredients = self.browser.find_element_by_id('ingredients')
ingredients.click() ingredients.click()
time.sleep(1) time.sleep(1)
...@@ -59,7 +60,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -59,7 +60,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Ingredients - List'. self.browser.title) self.assertIn('Ingredients - List', self.browser.title)
#satisfied, user goes back to the ingredients page #satisfied, user goes back to the ingredients page
self.browser.get('http://localhost:8000/ingredients') self.browser.get('http://localhost:8000/ingredients')
...@@ -74,7 +75,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -74,7 +75,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Ingredients - Create'. self.browser.title) self.assertIn('Ingredients - Create', self.browser.title)
#satisfied, user goes back to the ingredients page #satisfied, user goes back to the ingredients page
self.browser.get('http://localhost:8000/ingredients') self.browser.get('http://localhost:8000/ingredients')
...@@ -89,7 +90,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -89,7 +90,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Ingredients - Detail'. self.browser.title) self.assertIn('Ingredients - Detail', self.browser.title)
#satisfied, user goes back to the ingredients page #satisfied, user goes back to the ingredients page
self.browser.get('http://localhost:8000/ingredients') self.browser.get('http://localhost:8000/ingredients')
...@@ -104,7 +105,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -104,7 +105,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Ingredients - Update'. self.browser.title) self.assertIn('Ingredients - Update', self.browser.title)
#satisfied, user goes back to the ingredients page #satisfied, user goes back to the ingredients page
self.browser.get('http://localhost:8000/ingredients') self.browser.get('http://localhost:8000/ingredients')
...@@ -121,6 +122,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -121,6 +122,7 @@ class NewVisitorTest(unittest.TestCase):
def test_can_see_and_use_recipes_page(self): def test_can_see_and_use_recipes_page(self):
#user clicks on recipes page #user clicks on recipes page
self.browser.get('http://localhost:8000') self.browser.get('http://localhost:8000')
recipes = self.browser.find_element_by_id('recipes')
recipes.click() recipes.click()
time.sleep(1) time.sleep(1)
...@@ -152,7 +154,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -152,7 +154,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Recipes - List'. self.browser.title) self.assertIn('Recipes - List', self.browser.title)
#satisfied, user goes back to the recipes page #satisfied, user goes back to the recipes page
self.browser.get('http://localhost:8000/recipes') self.browser.get('http://localhost:8000/recipes')
...@@ -167,7 +169,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -167,7 +169,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Recipes - Create'. self.browser.title) self.assertIn('Recipes - Create', self.browser.title)
#satisfied, user goes back to the recipes page #satisfied, user goes back to the recipes page
self.browser.get('http://localhost:8000/recipes') self.browser.get('http://localhost:8000/recipes')
...@@ -182,7 +184,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -182,7 +184,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Recipes - Detail'. self.browser.title) self.assertIn('Recipes - Detail', self.browser.title)
#satisfied, user goes back to the recipes page #satisfied, user goes back to the recipes page
self.browser.get('http://localhost:8000/recipes') self.browser.get('http://localhost:8000/recipes')
...@@ -197,7 +199,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -197,7 +199,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Recipes - Update'. self.browser.title) self.assertIn('Recipes - Update', self.browser.title)
#satisfied, user goes back to the recipes page #satisfied, user goes back to the recipes page
self.browser.get('http://localhost:8000/recipes') self.browser.get('http://localhost:8000/recipes')
...@@ -214,6 +216,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -214,6 +216,7 @@ class NewVisitorTest(unittest.TestCase):
def test_can_see_and_use_orders_page(self): def test_can_see_and_use_orders_page(self):
#user clicks on orders page #user clicks on orders page
self.browser.get('http://localhost:8000') self.browser.get('http://localhost:8000')
orders = self.browser.find_element_by_id('orders')
orders.click() orders.click()
time.sleep(1) time.sleep(1)
...@@ -245,7 +248,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -245,7 +248,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Orders - List'. self.browser.title) self.assertIn('Orders - List', self.browser.title)
#satisfied, user goes back to the orders page #satisfied, user goes back to the orders page
self.browser.get('http://localhost:8000/orders') self.browser.get('http://localhost:8000/orders')
...@@ -260,7 +263,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -260,7 +263,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Orders - Create'. self.browser.title) self.assertIn('Orders - Create', self.browser.title)
#satisfied, user goes back to the orders page #satisfied, user goes back to the orders page
self.browser.get('http://localhost:8000/orders') self.browser.get('http://localhost:8000/orders')
...@@ -275,7 +278,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -275,7 +278,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Orders - Detail'. self.browser.title) self.assertIn('Orders - Detail', self.browser.title)
#satisfied, user goes back to the orders page #satisfied, user goes back to the orders page
self.browser.get('http://localhost:8000/orders') self.browser.get('http://localhost:8000/orders')
...@@ -290,7 +293,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -290,7 +293,7 @@ class NewVisitorTest(unittest.TestCase):
) )
#user checks page title to ensure he's in the right page #user checks page title to ensure he's in the right page
self.assertIn('Orders - Update'. self.browser.title) self.assertIn('Orders - Update', self.browser.title)
#satisfied, user goes back to the orders page #satisfied, user goes back to the orders page
self.browser.get('http://localhost:8000/orders') self.browser.get('http://localhost:8000/orders')
...@@ -305,5 +308,5 @@ class NewVisitorTest(unittest.TestCase): ...@@ -305,5 +308,5 @@ class NewVisitorTest(unittest.TestCase):
) )
if __name__='__main__': if __name__=='__main__':
unittest,main(warnings='ignore') unittest.main(warnings='ignore')
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
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