Trying to get landing page test working again

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-02-23 16:53:39 -05:00
parent e71351d949
commit 34d20c4d65

View File

@@ -7,7 +7,12 @@ 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
page.goto(f"{E2E_TEST_URI}/")
# Check to make sure that we've arrived at the next page.
page.wait_for_load_state("domcontentloaded")
# Check the page title exists and matches what we expect.
expect(page).to_have_title(re.compile("Notify.gov"))