more debug

This commit is contained in:
Kenneth Kehl
2024-04-15 09:08:47 -07:00
parent d54c339994
commit ff110de97f
2 changed files with 2 additions and 10 deletions

View File

@@ -65,10 +65,6 @@ def login_for_end_to_end_testing(browser):
auth_state_path = os.path.join(
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)
@@ -81,10 +77,8 @@ 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")
assert os.path.is_file(auth_state_path)
context = browser.new_context(storage_state=auth_state_path)
return context
@@ -111,6 +105,5 @@ 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

View File

@@ -160,7 +160,6 @@ def create_new_template(page):
def test_create_new_template(authenticated_page):
page = authenticated_page
assert page.content() == "foo"
_setup(page)