apparently I have to edit html files to add buttons and idnames to them so...

apparently I have to edit html files to add buttons and idnames to them so they would work even though nothing in the specs commit
parent ea4302ca
...@@ -5,7 +5,7 @@ from .views import HomeView ...@@ -5,7 +5,7 @@ from .views import HomeView
class NewVisitorTest(unittest.TestCase): class NewVisitorTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.browser = webdriver.Firefox() self.browser = webdriver.Firefox()
self.browser.implicitly_wait(30) #self.browser.implicitly_wait(30)
def tearDown(self): def tearDown(self):
self.browser.quit() self.browser.quit()
...@@ -21,7 +21,12 @@ class NewVisitorTest(unittest.TestCase): ...@@ -21,7 +21,12 @@ class NewVisitorTest(unittest.TestCase):
# She sees a list containing three heroes with their corresponding # She sees a list containing three heroes with their corresponding
# names, health points, and damage # names, health points, and damage
detail = self.browser.find_element_by_id('cloudName')
self.assertEqual(detail.get_attribute('innerHTML'), 'Cloud')
detail = self.browser.find_element_by_id('cloudHealth')
self.assertEqual(detail.get_attribute('innerHTML'), '600')
detail = self.browser.find_element_by_id('cloudAttack')
self.assertEqual(detail.get_attribute('innerHTML'), '57')
# When she selects one of the heroes, she is sent to another page # When she selects one of the heroes, she is sent to another page
# containing more information about the hero (additional stats, lore, image). # containing more information about the hero (additional stats, lore, image).
......
...@@ -12,5 +12,6 @@ ...@@ -12,5 +12,6 @@
<dt>Skills</dt><dd>Nimbus, Rain Cloud, Thunderbolt</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> <dt>Lore</dt><dd>I am a cloud. When I pee you call it 'rain'.</dd>
</dl> </dl>
<button><a href="/heroes" id='button'>Back to Heroes List</a></button>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -12,5 +12,6 @@ ...@@ -12,5 +12,6 @@
<dt>Skills</dt><dd>Laugh, Dance, Smile</dd> <dt>Skills</dt><dd>Laugh, Dance, Smile</dd>
<dt>Lore</dt><dd>I do it for the LOLs.</dd> <dt>Lore</dt><dd>I do it for the LOLs.</dd>
</dl> </dl>
<button><a href="/heroes" id='button'>Back to Heroes List</a></button>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -12,5 +12,6 @@ ...@@ -12,5 +12,6 @@
<dt>Skills</dt><dd>Power Pellet, Sunshine, Pollen Punch</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> <dt>Lore</dt><dd>I am Sunflowey. Sometimes a sun, sometimes a flower.</dd>
</dl> </dl>
<button><a href="/heroes" id='button'>Back to Heroes List</a></button>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -4,8 +4,26 @@ ...@@ -4,8 +4,26 @@
<title>The Will of the Wisps Wiki</title> <title>The Will of the Wisps Wiki</title>
</head> </head>
<body> <body>
<h1>WELCOME TO THE F HOME PAGE</h1>
<h1><a href="/hero/cloud" id="cloudName">Cloud</a></h1>
<dl> <dl>
<dt>Health Points</dt><dd id="cloudHealth">600</dd>
<dt>Base Attack Damage</dt><dd id="cloudAttack">57</dd>
</dl> </dl>
<h1><a href="/hero/jester" id="jesterName">Jester</a></h1>
<dl>
<dt>Health Points</dt><dd id="jesterHealth">660</dd>
<dt>Base Attack Damage</dt><dd id="jesterAttack">64</dd>
</dl>
<h1><a href="/hero/sunflowey" id="sunName">Sunflowey</a></h1>
<dl>
<dt>Health Points</dt><dd id="sunHealth">650</dd>
<dt>Base Attack Damage</dt><dd id="sunAttack">43</dd>
</dl>
</body> </body>
</html> </html>
\ No newline at end of file
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