diff --git a/cfl_common/common/tests/utils/email.py b/cfl_common/common/tests/utils/email.py index c77c978a5..4a8d0d432 100644 --- a/cfl_common/common/tests/utils/email.py +++ b/cfl_common/common/tests/utils/email.py @@ -2,21 +2,14 @@ from builtins import str -def follow_verify_email_link_to_onboarding(page, email): - _follow_verify_email_link(page, email) +def follow_verify_email_link_to_onboarding(page, url): + page.browser.get(url) return go_to_teacher_login_page(page.browser) -def follow_verify_email_link_to_teacher_dashboard(page, email): - _follow_verify_email_link(page, email) - - return go_to_teacher_dashboard_page(page.browser) - - -def follow_verify_email_link_to_login(page, email, user_type): - # _follow_verify_email_link(page, email) - page.browser.get(email) +def follow_verify_email_link_to_login(page, url, user_type): + page.browser.get(url) if user_type == "teacher": return go_to_teacher_login_page(page.browser) @@ -33,15 +26,6 @@ def follow_duplicate_account_link_to_login(page, email, user_type): return go_to_independent_student_login_page(page.browser) -def _follow_verify_email_link(page, email): - message = str(email.message()) - prefix = '

Please go to ' - j = str.find(message, suffix, i) - page.browser.get(message[i:j]) - - def _follow_duplicate_account_email_link(page, email): message = str(email.message()) prefix = 'please login: