def test_reset_password(self): page = self.go_to_homepage() page, name, username, email, password = create_independent_student(page) page = self.get_to_forgotten_password_page() page.reset_username_submit(username) self.wait_for_email() page = email_utils.follow_reset_email_link(self.selenium, mail.outbox[0]) new_password = "******" page.student_reset_password(new_password) self.selenium.get(self.live_server_url) page = ( self.go_to_homepage() .go_to_login_page() .independent_student_login(username, new_password) ) assert page.__class__.__name__ == "PlayDashboardPage" page = page.go_to_account_page() assert page.check_account_details({"name": name})
def test_reset_password(self): page = self.go_to_homepage() page, name, username, _, _ = create_independent_student(page) page = self.get_to_forgotten_password_page() page.reset_username_submit(username) self.wait_for_email() page = email_utils.follow_reset_email_link(self.selenium, mail.outbox[0]) new_password = "******" page.student_reset_password(new_password) self.selenium.get(self.live_server_url) page = ( self.go_to_homepage() .go_to_login_page() .independent_student_login(username, new_password) ) assert page.__class__.__name__ == "PlayDashboardPage" page = page.go_to_account_page() assert page.check_account_details({"name": name})
def test_reset_password(self): homepage = self.go_to_homepage() username = create_independent_student(homepage)[2] page = self.get_to_forgotten_password_page() page.reset_username_submit(username) self.wait_for_email() page = email_utils.follow_reset_email_link(selenium, mail.outbox[0]) new_password = '******' page.reset_password(new_password) selenium.get(self.live_server_url) page = self \ .go_to_homepage() \ .go_to_play_page() \ .go_to_independent_form() \ .independent_student_login(username, new_password) assert self.is_independent_student_details(page)
def test_reset_password(self): email, password = signup_teacher_directly() page = self.get_to_forgotten_password_page() page.reset_email_submit(email) self.wait_for_email() page = email_utils.follow_reset_email_link(selenium, mail.outbox[0]) new_password = '******' page.reset_password(new_password) selenium.get(self.live_server_url) page = HomePage(selenium).go_to_teach_page().login(email, new_password) assert self.is_teacher_dashboard(page)
def test_reset_password(self): email, _ = signup_teacher_directly() create_organisation_directly(email) _, _, access_code = create_class_directly(email) create_school_student_directly(access_code) page = self.get_to_forgotten_password_page() page.reset_email_submit(email) self.wait_for_email() page = email_utils.follow_reset_email_link(self.selenium, mail.outbox[0]) new_password = "******" page.teacher_reset_password(new_password) self.selenium.get(self.live_server_url) page = HomePage(self.selenium).go_to_login_page().login(email, new_password) assert self.is_dashboard_page(page)