mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Undo changes to the landing page test
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -68,11 +68,6 @@ def login_for_end_to_end_testing(browser):
|
|||||||
context.storage_state(path=auth_state_path)
|
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")
|
@pytest.fixture(scope="session")
|
||||||
def end_to_end_authenticated_context(browser):
|
def end_to_end_authenticated_context(browser):
|
||||||
@@ -89,9 +84,9 @@ def end_to_end_authenticated_context(browser):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def unauthenticated_page(end_to_end_context):
|
def end_to_end_context(browser):
|
||||||
page = end_to_end_context.new_page()
|
context = browser.new_context()
|
||||||
return page
|
return context
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ from playwright.sync_api import expect
|
|||||||
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
||||||
|
|
||||||
|
|
||||||
def test_landing_page(unauthenticated_page):
|
def test_landing_page(end_to_end_context):
|
||||||
# Open a new page and go to the staging site.
|
# Open a new page and go to the site.
|
||||||
page = unauthenticated_page
|
page = end_to_end_context.browser.new_page()
|
||||||
page.goto(f"{E2E_TEST_URI}/")
|
page.goto(f"{E2E_TEST_URI}/")
|
||||||
|
|
||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
|
|||||||
Reference in New Issue
Block a user