From 3dc73ab92e1e663926c645d18645863ab8cbf87c Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 15 Apr 2024 08:24:20 -0700 Subject: [PATCH] more debug --- tests/end_to_end/conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py index c7cc3a96d..cc147cfb6 100644 --- a/tests/end_to_end/conftest.py +++ b/tests/end_to_end/conftest.py @@ -63,8 +63,12 @@ def login_for_end_to_end_testing(browser): # Save storage state into the file. auth_state_path = os.path.join( - os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json" + os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.jso" ) + if os.path.is_file(auth_state_path): + print("AUTH STATE PATH EXISTS") + else: + raise Exception("COULDNT FIND THE AUTH STATE PATH") context.storage_state(path=auth_state_path) @@ -107,5 +111,6 @@ def authenticated_page(end_to_end_context): # Wait for the next page to fully load. page.wait_for_load_state("domcontentloaded") + print(page.content()) return page