diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index dc9327ef4..8486120f5 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -117,7 +117,7 @@ jobs: SECRET_KEY: ${{ secrets.SECRET_KEY }} ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }} ADMIN_CLIENT_USERNAME: notify-admin - NOTIFY_ENVIRONMENT: development + NOTIFY_ENVIRONMENT: e2etest NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }} NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }} NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }} diff --git a/app/main/views/sign_in.py b/app/main/views/sign_in.py index 2a205c9aa..4863392da 100644 --- a/app/main/views/sign_in.py +++ b/app/main/views/sign_in.py @@ -135,6 +135,7 @@ def sign_in(): # If we have to revalidated the email, send the message # via email and redirect to the "verify your email page" # and don't proceed further with login + current_app.logger.warning("HIT SIGNIN!") email_verify_template = _do_login_dot_gov() if ( email_verify_template @@ -153,7 +154,7 @@ def sign_in(): user = user_api_client.get_user_by_email(os.getenv("NOTIFY_E2E_TEST_EMAIL")) activate_user(user["id"]) return redirect(url_for("main.show_accounts_or_dashboard", next=redirect_url)) - + current_app.logger.warning("FAILED TO BOUNCE OUT OF SIGN IN") current_app.logger.info(f"current user is {current_user}") if current_user and current_user.is_authenticated: if redirect_url and is_safe_redirect_url(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 293931785..bc254d072 100644 --- a/tests/end_to_end/test_create_new_template.py +++ b/tests/end_to_end/test_create_new_template.py @@ -3,6 +3,8 @@ import os import re import uuid +from flask import current_app + from playwright.sync_api import expect E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI") @@ -10,6 +12,9 @@ E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI") def _setup(page): # Prepare for adding a new service later in the test. + current_app.logger.warning(f"ESE_TEST_URI={E2E_TEST_URI}") + current_app.logger.warning(f"NOTIFY_ENVIRONMENT={os.getenv('NOTIFY_ENVIRONMENT')}") + current_app.logger.warning(f"E2E EMAIL {os.getenv('NOTIFY_E2E_TEST_EMAIL')}") current_date_time = datetime.datetime.now() new_service_name = "E2E Federal Test Service {now} - {browser_type}".format( now=current_date_time.strftime("%m/%d/%Y %H:%M:%S"),