Commit db715f36 authored by Li Niko M. Arceo's avatar Li Niko M. Arceo 🦈

title = header is checked

parent 235977ba
Pipeline #760 failed with stages
...@@ -59,7 +59,16 @@ class NewVisitorTest(unittest.TestCase): ...@@ -59,7 +59,16 @@ class NewVisitorTest(unittest.TestCase):
self.assertEqual(element.get_attribute('placeholder'), 'Detail - Sunflowey') self.assertEqual(element.get_attribute('placeholder'), 'Detail - Sunflowey')
element = self.browser.find_element_by_id('sunflowey-details') element = self.browser.find_element_by_id('sunflowey-details')
self.assertEqual(element.get_attribute('placeholder'), '<dt>Health Points</dt><dd>650</dd><dt>Base Attack Damage</dt><dd>43</dd><dt>Skills</dt><dd>Power Pellet, Sunshine, Pollen Punch</dd><dt>Lore</dt><dd>I am Sunflowey. Sometimes a sun, sometimes a flower.</dd>') self.assertEqual(element.get_attribute('placeholder'), '<dt>Health Points</dt><dd>650</dd><dt>Base Attack Damage</dt><dd>43</dd><dt>Skills</dt><dd>Power Pellet, Sunshine, Pollen Punch</dd><dt>Lore</dt><dd>I am Sunflowey. Sometimes a sun, sometimes a flower.</dd>')
# She spots the page title and header mentions the name of the hero she selected. # She spots the page title and header mentions the name of the hero she selected.
self.browser.get('http://localhost:8000/heroes/cloud')
self.assertIn('Details - Cloud')
self.browser.get('http://localhost:8000/heroes/jester')
self.assertIn('Details - Jester')
self.browser.get('http://localhost:8000/heroes/cloud')
self.assertIn('Details - Sunflowey')
# 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.
......
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