From 42570416da29e9c04e0df7704622403f5110ca41 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 15 Apr 2024 07:33:27 -0700 Subject: [PATCH] debug in case auth state path doesn't exist --- tests/end_to_end/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py index 30ca363f5..c7cc3a96d 100644 --- a/tests/end_to_end/conftest.py +++ b/tests/end_to_end/conftest.py @@ -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