Sometimes test hang up and time out due to network errors (#2853)

* Fixed disable button, formated time to include time zone

* Fixed bandit

* Fix hanging test
This commit is contained in:
Alex Janousek
2025-08-21 17:23:30 -04:00
committed by GitHub
parent 7cbd0602e6
commit b2f86e045f
5 changed files with 14 additions and 5 deletions

View File

@@ -20,13 +20,14 @@ def test_non_logged_in_user_can_see_homepage(
assert heading in [
"Reach people where they are with government-powered text messages",
"There's currently a technical issue.",
"Sunsetting Notify.gov",
]
button = page.select_one(
"a.usa-button.login-button.login-button--primary.margin-right-2"
)
if heading == "There's currently a technical issue.":
if heading in ["There's currently a technical issue.", "Sunsetting Notify.gov"]:
assert button is None
else:
assert button is not None