debug in case auth state path doesn't exist

This commit is contained in:
Kenneth Kehl
2024-04-15 07:33:27 -07:00
parent e934e49137
commit 42570416da

View File

@@ -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