fix manifest

This commit is contained in:
Kenneth Kehl
2024-04-15 13:07:53 -07:00
parent 282611ec9c
commit 358971164e
3 changed files with 12 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ 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.jso"
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
)
context.storage_state(path=auth_state_path)

View File

@@ -160,25 +160,6 @@ def create_new_template(page):
def test_create_new_template(authenticated_page):
page = authenticated_page
filename = "state.json"
# Search in <search_path>
search_path = "/"
found_state_json = False
wrong_paths = ['/var/lib/snapd/state.json']
for root, dirs, files in os.walk(search_path):
if filename in files:
file_path = os.path.join(root, filename)
if os.path.isfile(file_path) and file_path not in wrong_paths:
found_state_json = True
assert found_state_json is True
assert file_path == 'foo'
auth_state_path = os.path.join(
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
)
assert os.path.isfile(auth_state_path)
_setup(page)
create_new_template(page)