mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
fix manifest
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user