diff --git a/app/main/views/sign_in.py b/app/main/views/sign_in.py index a33562972..fc10eb2d4 100644 --- a/app/main/views/sign_in.py +++ b/app/main/views/sign_in.py @@ -149,11 +149,14 @@ def _handle_e2e_tests(redirect_url): return redirect( url_for( "main.show_accounts_or_dashboard", - next=os.getenv("NOTIFY_E2E_TEST_EMAIL"), + next="EMAIL_IS_OK", ) ) except Exception as e: - return redirect(url_for("main.show_accounts_or_dashboard", next=f"{e}")) + stre = str(e) + stre = stre.replace(" ", "_") + # Trying to get a message back to playwright somehow since we can't see the admin logs + return redirect(url_for(f"https://{stre}")) # return redirect(url_for("main.show_accounts_or_dashboard", next=redirect_url)) diff --git a/tests/end_to_end/test_create_new_template.py b/tests/end_to_end/test_create_new_template.py index 48b5ee154..d54ce2940 100644 --- a/tests/end_to_end/test_create_new_template.py +++ b/tests/end_to_end/test_create_new_template.py @@ -92,7 +92,7 @@ def test_create_new_template(end_to_end_context): print(f"WHAT IS THE TEST EMAIL {os.getenv('NOTIFY_E2E_TEST_EMAIL')}") page = end_to_end_context.new_page() print(f"INITIAL PAGE IS {page}") - x = page.goto(f"{E2E_TEST_URI}/sign-in") + page.goto(f"{E2E_TEST_URI}/sign-in") # Wait for the next page to fully load. page.wait_for_load_state("domcontentloaded") print(f"PAGE ON ENTER TEST_CREATE_NEW_TEMPLATE AFTER SIGNING IN IS {page}")