mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-24 18:09:13 -04:00
debug in case auth state path doesn't exist
This commit is contained in:
@@ -77,6 +77,10 @@ def end_to_end_authenticated_context(browser):
|
||||
auth_state_path = os.path.join(
|
||||
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
|
||||
)
|
||||
if os.path.is_file(auth_state_path):
|
||||
print("AUTH STATE PATH EXISTS")
|
||||
else:
|
||||
raise Exception("COULDNT FIND THE AUTH STATE PATH")
|
||||
context = browser.new_context(storage_state=auth_state_path)
|
||||
|
||||
return context
|
||||
|
||||
Reference in New Issue
Block a user