mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 00:20:43 -04:00
Make sure errors on one-off flow have red border
When I split up the error messages on the check CSV page into multiple
templates, I also reduced the repetition of wrapping `<div>`s and macro
calls by moving them up outside the conditional blocks (see
8e947f315d).
Unfortunately I didn’t make the same adjustments for the one-off flow,
which meant that errors on these pages lost their styling. This commit
re-adds the styling for these error messages.
This commit is contained in:
@@ -1937,6 +1937,6 @@ def test_send_notification_shows_error_if_400(
|
||||
_expected_status=200
|
||||
)
|
||||
|
||||
assert ' '.join(page.h1.text.split()) == expected_h1
|
||||
assert ' '.join(page.h1.parent.p.text.split()) == expected_err_details
|
||||
assert normalize_spaces(page.select('.banner-dangerous h1')[0].text) == expected_h1
|
||||
assert normalize_spaces(page.select('.banner-dangerous p')[0].text) == expected_err_details
|
||||
assert not page.find('input[type=submit]')
|
||||
|
||||
Reference in New Issue
Block a user