mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-08 14:14:27 -05:00
Add end-to-end test for sign-in redirect behavior
This commit is contained in:
15
tests/end_to_end/test_sign_in_flow.py
Normal file
15
tests/end_to_end/test_sign_in_flow.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
import re
|
||||
from playwright.sync_api import expect
|
||||
from tests.end_to_end.conftest import check_axe_report
|
||||
|
||||
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
||||
|
||||
|
||||
def test_sign_in_redirects_when_authenticated(authenticated_page):
|
||||
page = authenticated_page
|
||||
page.goto(f"{E2E_TEST_URI}/accounts")
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
check_axe_report(page)
|
||||
expect(page).to_have_url(re.compile("/accounts"))
|
||||
expect(page).to_have_title(re.compile("Choose service"))
|
||||
Reference in New Issue
Block a user