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

fixed untracked files

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