Commit fc8afb2a authored by Santino Campos's avatar Santino Campos

Modify functional test to take into account the blank url

parent c56080d7
...@@ -11,7 +11,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -11,7 +11,7 @@ class NewVisitorTest(unittest.TestCase):
def test_can_display_a_heroes_list_and_more_information_per_hero(self): def test_can_display_a_heroes_list_and_more_information_per_hero(self):
# Widget has heard about a new wiki app for the game called The Will of the Wisps. # Widget has heard about a new wiki app for the game called The Will of the Wisps.
# She goes to check out its homepage # She goes to check out its homepage
self.browser.get('http://localhost:8000/heroes') self.browser.get('http://localhost:8000/')
# She notices the page title and header mention # She notices the page title and header mention
# 'The Will of the Wisps Wiki' # 'The Will of the Wisps Wiki'
...@@ -38,8 +38,8 @@ class NewVisitorTest(unittest.TestCase): ...@@ -38,8 +38,8 @@ class NewVisitorTest(unittest.TestCase):
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List". # While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
# She clicks this and she is redirected back to the wiki's homepage. # She clicks this and she is redirected back to the wiki's homepage.
self.assertIn('<a href="http://localhost:8000/heroes"><button>Back to Heroes List </button> </a>', self.browser.page_source) self.assertIn('<a href="http://localhost:8000/"><button>Back to Heroes List </button> </a>', self.browser.page_source)
self.browser.get('http://localhost:8000/heroes') self.browser.get('http://localhost:8000/')
self.fail('Finish the test!') self.fail('Finish the test!')
......
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