Commit 173e89bb authored by Karlo Cabugwang's avatar Karlo Cabugwang

modified functional test

parent 5ee9027a
import unittest
from selenium import webdriver
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
# def tearDown(self):
# self.browser.quit()
def test_can_start_and_open(self):
self.browser.get('http://localhost:8000/heroes')
self.assertIn('The Will of the Wisps Wiki', self.browser.title)
self.fail('Finish the Test')
# def test_can_display_a_heroes_list_and_more_information_per_hero(self):
# # Widget has heard about a new wiki app for the game called The Will of the Wisps.
# # She goes to check out its homepage
# browser.get('http://localhost:8000/tasks')
# self.assertTemplateUsed(response,'home.html')
# # She notices the page title and header mention
# # 'The Will of the Wisps Wiki'
# self.assertIn('The Will of the Wisps Wiki', self.browser.title)
# # She sees a list containing three heroes with their corresponding
# # names, health points, and damage
# # When she selects one of the heroes, she is sent to another page
# # containing more information about the hero (additional stats, lore, image).
# # 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".
# # She clicks this and she is redirected back to the wiki's homepage.
# self.fail('Finish the test!')
if __name__ == '__main__':
unittest.main(warnings='ignore')
\ 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