Commit 7cfdac4f authored by abbeeeeyyyyy's avatar abbeeeeyyyyy

Fixed the final bug

parent 34fe90df
Pipeline #954 failed with stages
This diff is collapsed.
......@@ -26,8 +26,8 @@
<dl>
<dt>Health Points</dt>
<dd id="hp-sunflowey">650</dd>
<dt> id="d-sunflowey">Base Attack Damage</dt>
<dd>43</dd>
<dt>Base Attack Damage</dt>
<dd id="d-sunflowey">43</dd>
</dl>
</body>
......
......@@ -20,17 +20,17 @@ class NewVisitorTest(unittest.TestCase):
# She sees a list containing three heroes with their corresponding
# names, health points, and damage
self.assertIn('Jester', self.browser.find_element_by_id('jester'))
self.assertIn('660', self.browser.find_element_by_id('hp-jester'))
self.assertIn('64', self.browser.find_element_by_id('d-jester'))
self.assertIn('Jester', self.browser.find_element_by_id('jester').text)
self.assertIn('660', self.browser.find_element_by_id('hp-jester').text)
self.assertIn('64', self.browser.find_element_by_id('d-jester').text)
self.assertIn('Cloud', self.browser.find_element_by_id('cloud'))
self.assertIn('600', self.browser.find_element_by_id('hp-cloud'))
self.assertIn('57', self.browser.find_element_by_id('d-cloud'))
self.assertIn('Cloud', self.browser.find_element_by_id('cloud').text)
self.assertIn('600', self.browser.find_element_by_id('hp-cloud').text)
self.assertIn('57', self.browser.find_element_by_id('d-cloud').text)
self.assertIn('Sunflowey', self.browser.find_element_by_id('sunflowey'))
self.assertIn('650', self.browser.find_element_by_id('hp-sunflowey'))
self.assertIn('43', self.browser.find_element_by_id('d-sunflowey'))
self.assertIn('Sunflowey', self.browser.find_element_by_id('sunflowey').text)
self.assertIn('650', self.browser.find_element_by_id('hp-sunflowey').text)
self.assertIn('43', self.browser.find_element_by_id('d-sunflowey').text)
# When she selects one of the heroes, she is sent to another page
......@@ -68,14 +68,14 @@ class NewVisitorTest(unittest.TestCase):
# She spots the page title and header mentions the name of the hero she selected.
self.assertIn('Detail - Sunflowey', self.browser.title)
self.assertIn('Detail - Suunflowey', self.browser.find_element_by_tag_name('h1').text)
self.assertIn('Detail - Sunflowey', self.browser.find_element_by_tag_name('h1').text)
# 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.
homePageLink = self.browser.find_element_by_link_text('Back to Heroes List')
homePageLink.click()
#self.fail('Finish the test!')
self.fail('Finish the test!')
......
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