Undo changes to the landing page test

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-02-23 17:10:41 -05:00
parent c891bc1b3f
commit 5c6a23c873
2 changed files with 6 additions and 11 deletions

View File

@@ -68,11 +68,6 @@ def login_for_end_to_end_testing(browser):
context.storage_state(path=auth_state_path)
@pytest.fixture(scope="session")
def end_to_end_context(browser):
context = browser.new_context()
return context
@pytest.fixture(scope="session")
def end_to_end_authenticated_context(browser):
@@ -89,9 +84,9 @@ def end_to_end_authenticated_context(browser):
@pytest.fixture(scope="session")
def unauthenticated_page(end_to_end_context):
page = end_to_end_context.new_page()
return page
def end_to_end_context(browser):
context = browser.new_context()
return context
@pytest.fixture(scope="session")

View File

@@ -6,9 +6,9 @@ from playwright.sync_api import expect
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
def test_landing_page(unauthenticated_page):
# Open a new page and go to the staging site.
page = unauthenticated_page
def test_landing_page(end_to_end_context):
# Open a new page and go to the site.
page = end_to_end_context.browser.new_page()
page.goto(f"{E2E_TEST_URI}/")
# Check to make sure that we've arrived at the next page.