mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user