This commit is contained in:
Kenneth Kehl
2024-07-11 10:27:04 -07:00
parent 058a999ed0
commit 272d321766
2 changed files with 5 additions and 1 deletions

View File

@@ -55,7 +55,10 @@ class NotifyAdminAPIClient(BaseAPIClient):
abort(403)
def check_inactive_user(self):
if not current_user or not current_user.is_active:
if os.getenv("NOTIFY_E2E_TEST_EMAIL"):
# allow end-to-end tests to skip check
pass
elif not current_user or not current_user.is_active:
abort(403)
def post(self, *args, **kwargs):

View File

@@ -10,6 +10,7 @@ E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
def test_add_new_service_workflow(authenticated_page, end_to_end_context):
page = authenticated_page
# Prepare for adding a new service later in the test.
current_date_time = datetime.datetime.now()
new_service_name = "E2E Federal Test Service {now} - {browser_type}".format(