Commit 83c618b2 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

added a home page header check in the functional test for spec compliance

parent 573ad4a1
......@@ -11,8 +11,9 @@ class NewVisitorTest(unittest.TestCase):
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.
# She goes to check out its homepage
self.browser.get('http://localhost:8000')
self.browser.get('http://localhost:8000/heroes')
homePageHeader = self.browser.find_element_b_id('homePageHeader')
self.assertEqual(homePageHeader.get_attribute('innerHTML'), 'The Will of the Wisps Wiki')
# She notices the page title and header mention
# 'The Will of the Wisps Wiki'
self.assertIn('The Will of the Wisps Wiki', self.browser.title)
......
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