This commit is contained in:
Kenneth Kehl
2023-09-13 12:16:43 -07:00
parent 93e4d1b4bb
commit 91f1790c89
5 changed files with 13 additions and 29 deletions

View File

@@ -3686,10 +3686,7 @@ def end_to_end_authenticated_context(browser):
login_for_end_to_end_testing(browser)
auth_state_path = os.path.join(
# TODO
"playwright/.auth/",
"state.json"
# os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
)
context = browser.new_context(storage_state=auth_state_path)

View File

@@ -21,9 +21,8 @@ def _bypass_sign_in(end_to_end_context):
return page
def test_add_new_service_workflow(end_to_end_context):
#page = end_to_end_context.new_page()
# page = end_to_end_context.new_page()
page = _bypass_sign_in(end_to_end_context)
page.goto(os.getenv("NOTIFY_E2E_TEST_URI"))
@@ -131,4 +130,3 @@ def test_add_new_service_workflow(end_to_end_context):
# Check to make sure that we've arrived at the next page.
# Check the page title exists and matches what we expect.
expect(page).to_have_title(re.compile("Choose service"))