@@ -0,0 +1,2866 @@
+from django.contrib.staticfiles.testing import StaticLiveServerTestCase%0Afrom django.test.utils import override_settings%0Afrom selenium import webdriver%0A%0A%0Aclass ApplicationFunctionalTests(StaticLiveServerTestCase):%0A%0A    def setUp(self):%0A        self.browser = webdriver.Firefox()%0A        self.browser.implicitly_wait(3)%0A%0A    def tearDown(self):%0A        self.browser.quit()%0A%0A    def input_into(self, id, value):%0A        # a helper method to enter a value into a field given that field's id%0A        element = self.browser.find_element_by_id(id)%0A        element.send_keys(value)%0A%0A    def test_happy_path(self):%0A        # test that a user can provide the minimum required amount of data%0A        # to the form and submit successfully%0A%0A        # the user navigates to the site%0A        self.browser.get('localhost:8081')%0A        self.assertIn('Hebrew Order of David', self.browser.title)%0A%0A        # the user enters a valid email address%0A        self.input_into('id_email', 'test@test.com')%0A%0A        # the user enters a valid first name%0A        self.input_into('id_first_name', 'Robert')%0A%0A        # the user enters a valid last name%0A        self.input_into('id_last_name', 'Smith')%0A%0A        # the user enters a valid home address%0A        self.input_into('id_home_address', '123 Main St.')%0A%0A        # the user enters a valid home city%0A        self.input_into('id_home_city', 'Dallas')%0A%0A        # the user enters a valid home state%0A        self.input_into('id_home_state', 'TX')%0A%0A        # the user enters a valid home zip%0A        self.input_into('id_home_zip', '78001')%0A%0A        # the user enters a valid home phone%0A        self.input_into('id_home_phone', '123-456-7890')%0A%0A        # the user enters a valid work phone%0A        self.input_into('id_work_phone', '456-123-7890')%0A%0A        # the user enters a valid mobile phone%0A        self.input_into('id_mobile_phone', '789-123-4560')%0A%0A        # the user enters an occupation%0A        self.input_into('id_occupation', 'Web Application Tester')%0A%0A        # the user enters a business name%0A        self.input_into('id_business_name', 'Web Testers R Us')%0A%0A        # the user enters a business address%0A        self.input_into('id_business_address', '789 South St.')%0A%0A        # the user enters a business city%0A        self.input_into('id_business_city', 'Dallas')%0A%0A        # the user enters a business state%0A        self.input_into('id_business_state', 'TX')%0A%0A        # the user enters a business zip%0A        self.input_into('id_business_zip', '12345')%0A%0A        # the user enters a city of birth%0A        self.input_into('id_city_of_birth', 'Dallas')%0A%0A        # the user enters a country of birth%0A        self.input_into('id_country_of_birth', 'USA')%0A%0A        import ipdb; ipdb.set_trace()%0A%0A        # the user clicks the submit button%0A        button = self.browser.find_element_by_class_name('submit-application')%0A        button.click()%0A

add functional tests for happy path