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

details on sunflowey page are checked; bug with checking title is fixed

parent ee2f8fe4
Pipeline #758 canceled with stages
......@@ -50,11 +50,15 @@ class NewVisitorTest(unittest.TestCase):
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')
self.assertEqual(element.get_attribute('placeholder'), 'Detail - Jester')
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>')
self.browser.get('http://localhost:8000/heroes/sunflowey')
element = self.browser.find_element_by_id('sunflowey-name')
self.assertEqual(element.get_attribute('placeholder'), 'Detail - Sunflowey')
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>')
# She spots the page title and header mentions the name of the hero she selected.
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
......
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