From a1f06740a1eb79762c7e7d255dab43a877785361 Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Thu, 4 Apr 2024 14:50:32 +0000 Subject: [PATCH] fix: debug tests --- cfl_common/common/tests/utils/email.py | 41 +++++------------------- cfl_common/common/tests/utils/teacher.py | 8 +++-- 2 files changed, 13 insertions(+), 36 deletions(-) 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: