Adjusting authenticated page fixture

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-02-23 11:39:14 -05:00
parent 4180dca164
commit 4741b381c2
2 changed files with 3 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ def end_to_end_authenticated_context(browser):
@pytest.fixture(scope="session")
def bypass_sign_in(end_to_end_context):
def authenticated_page(end_to_end_context):
# Open a new page and go to the staging site.
page = end_to_end_context.new_page()

View File

@@ -7,8 +7,8 @@ from playwright.sync_api import expect
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
def test_add_new_service_workflow(bypass_sign_in, end_to_end_context):
page = bypass_sign_in(end_to_end_context)
def test_add_new_service_workflow(authenticated_page, end_to_end_context):
page = authenticated_page
page.goto(f"{E2E_TEST_URI}/")
# Wait for the next page to fully load.