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

details on cloud page are checked

parent 9a74a03d
Pipeline #756 canceled with stages
......@@ -41,7 +41,14 @@ class NewVisitorTest(unittest.TestCase):
# When she selects one of the heroes, she is sent to another page
# containing more information about the hero (additional stats, lore, image).
self.browser.get('http://localhost:8000/heroes/cloud')
element = self.browser.find_element_by_id('cloud-name')
self.assertEqual(element.get_attribute('placeholder'), 'Detail - Cloud')
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>')
# 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