mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Compare commits
1 Commits
dependabot
...
2595-state
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58592836bd |
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