Commit 573ad4a1 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Fixed naming inconsitencies for verifing page headers in tests

parent b78dd5bd
......@@ -34,24 +34,24 @@ class CheckContents(unittest.TestCase):
self.browser.get('http://localhost:8000/hero/cloud')
cloudTitle = self.browser.find_element_by_id('cloudTitle')
self.assertEqual(cloudTitle.get_attribute('innerHTML'), 'Detail - Cloud')
cloudHeading = self.browser.find_element_b_id('cloudHeader')
cloudHeader = self.browser.find_element_b_id('cloudHeader')
self.assertEqual(cloudHeader.get_attribute('innerHTML'), 'Detail - Cloud')
def check_jester_page_title_and_heading(self):
self.browser.get('http://localhost:8000/hero/jester')
jesterTitle = self.browser.find_element_by_id('jesterTitle')
self.assertEqual(jesterTitle.get_attribute('innerHTML'), 'Detail - Jester')
jesterHeading = self.browser.find_element_b_id('jesterHeader')
jesterHeader = self.browser.find_element_b_id('jesterHeader')
self.assertEqual(jesterHeader.get_attribute('innerHTML'), 'Detail - Jester')
def check_sunflowey_page_title_and_heading(self):
self.browser.get('http://localhost:8000/hero/sunflowey')
sunfloweyTitle = self.browser.find_element_by_id('sunfloweyTitle')
self.assertEqual(sunfloweyTitle.get_attribute('innerHTML'), 'Detail - Sunflowey')
sunfloweyHeading = self.browser.find_element_b_id('sunfloweyHeader')
sunfloweyHeader = self.browser.find_element_b_id('sunfloweyHeader')
self.assertEqual(sunfloweyHeader.get_attribute('innerHTML'), 'Detail - Sunflowey')
......
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