mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
more debug
This commit is contained in:
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -117,7 +117,7 @@ jobs:
|
|||||||
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
||||||
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
|
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
|
||||||
ADMIN_CLIENT_USERNAME: notify-admin
|
ADMIN_CLIENT_USERNAME: notify-admin
|
||||||
NOTIFY_ENVIRONMENT: development
|
NOTIFY_ENVIRONMENT: e2etest
|
||||||
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
|
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
|
||||||
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
||||||
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ def sign_in():
|
|||||||
# If we have to revalidated the email, send the message
|
# If we have to revalidated the email, send the message
|
||||||
# via email and redirect to the "verify your email page"
|
# via email and redirect to the "verify your email page"
|
||||||
# and don't proceed further with login
|
# and don't proceed further with login
|
||||||
|
current_app.logger.warning("HIT SIGNIN!")
|
||||||
email_verify_template = _do_login_dot_gov()
|
email_verify_template = _do_login_dot_gov()
|
||||||
if (
|
if (
|
||||||
email_verify_template
|
email_verify_template
|
||||||
@@ -153,7 +154,7 @@ def sign_in():
|
|||||||
user = user_api_client.get_user_by_email(os.getenv("NOTIFY_E2E_TEST_EMAIL"))
|
user = user_api_client.get_user_by_email(os.getenv("NOTIFY_E2E_TEST_EMAIL"))
|
||||||
activate_user(user["id"])
|
activate_user(user["id"])
|
||||||
return redirect(url_for("main.show_accounts_or_dashboard", next=redirect_url))
|
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}")
|
current_app.logger.info(f"current user is {current_user}")
|
||||||
if current_user and current_user.is_authenticated:
|
if current_user and current_user.is_authenticated:
|
||||||
if redirect_url and is_safe_redirect_url(redirect_url):
|
if redirect_url and is_safe_redirect_url(redirect_url):
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import os
|
|||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
from flask import current_app
|
||||||
|
|
||||||
from playwright.sync_api import expect
|
from playwright.sync_api import expect
|
||||||
|
|
||||||
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
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):
|
def _setup(page):
|
||||||
# Prepare for adding a new service later in the test.
|
# 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()
|
current_date_time = datetime.datetime.now()
|
||||||
new_service_name = "E2E Federal Test Service {now} - {browser_type}".format(
|
new_service_name = "E2E Federal Test Service {now} - {browser_type}".format(
|
||||||
now=current_date_time.strftime("%m/%d/%Y %H:%M:%S"),
|
now=current_date_time.strftime("%m/%d/%Y %H:%M:%S"),
|
||||||
|
|||||||
Reference in New Issue
Block a user