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

details on jester page are checked

parent 08ad26b3
...@@ -48,6 +48,12 @@ class NewVisitorTest(unittest.TestCase): ...@@ -48,6 +48,12 @@ class NewVisitorTest(unittest.TestCase):
element = self.browser.find_element_by_id('cloud-details') element = self.browser.find_element_by_id('cloud-details')
self.assertEqual(element.get_attribute('placeholder'), '<dt>Health Points</dt><dd>600</dd><dt>Base Attack Damage</dt><dd>57</dd><dt>Skills</dt><dd>Nimbus, Rain Cloud, Thunderbolt</dd><dt>Lore</dt><dd>I am a cloud. When I pee you call it \'rain\'.</dd>') self.assertEqual(element.get_attribute('placeholder'), '<dt>Health Points</dt><dd>600</dd><dt>Base Attack Damage</dt><dd>57</dd><dt>Skills</dt><dd>Nimbus, Rain Cloud, Thunderbolt</dd><dt>Lore</dt><dd>I am a cloud. When I pee you call it \'rain\'.</dd>')
self.browser.get('http://localhost:8000/heroes/jester')
element = self.browser.find_element_by_id('jester-name')
self.assertEqual(element.get_attribute('placeholder'), 'Detail - Cloud')
element = self.browser.find_element_by_id('jester-details')
self.assertEqual(element.get_attribute('placeholder'), '<dt>Health Points</dt><dd>660</dd><dt>Base Attack Damage</dt><dd>64</dd><dt>Skills</dt><dd>Laugh, Dance, Smile</dd><dt>Lore</dt><dd>I do it for the LOLs.</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.
......
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