@@ -0,0 +1,1125 @@
+from . import TheInternetTestCase%0Afrom helium.api import start_chrome, S, get_driver, set_driver, write, click, %5C%0A%09Text, Link, kill_browser, wait_until%0A%0Aclass ForgotPasswordTest(TheInternetTestCase):%0A%09def get_page(self):%0A%09%09return %22http://the-internet.herokuapp.com/forgot_password%22%0A%09def test_retrieve_password(self):%0A%09%09email_address = self._get_temporary_email_address()%0A%09%09write(email_address, into=%22E-mail%22)%0A%09%09click(%22Retrieve Password%22)%0A%09%09self.assertTrue(Text(%22Your e-mail's been sent!%22).exists())%0A%09%09set_driver(self.emailbox_driver)%0A%09%09wait_until(%0A%09%09%09self._refresh_and_check_if_exists,%0A%09%09%09timeout_secs=60, interval_secs=1%0A%09%09)%0A%09%09self.assertTrue(Text(%22no-reply@the-internet.herokuapp.com%22).exists())%0A%09%09kill_browser()%0A%09%09set_driver(self.test_case_driver)%0A%09def _get_temporary_email_address(self):%0A%09%09self.test_case_driver = get_driver()%0A%09%09start_chrome(%22http://temp-mail.org/%22)%0A%09%09self.emailbox_driver = get_driver()%0A%09%09email_address = S(%22#email%22).web_element.text%0A%09%09set_driver(self.test_case_driver)%0A%09%09return email_address%0A%09def _refresh_and_check_if_exists(self):%0A%09%09click(%22Refresh%22)%0A%09%09return Link(%22Forgot Password from the%22).exists()

Add test case for forgot password.