mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 09:18:26 -04:00
Test letter too long error banner using exisitng data-error-type attribute
This way we can avoid both creating an id attribute for testing and testing by content.
This commit is contained in:
@@ -543,7 +543,7 @@ def test_view_letter_template_does_not_display_send_button_if_template_over_10_p
|
||||
)
|
||||
|
||||
assert "Send" not in page.text
|
||||
assert page.select('#letter-too-long')
|
||||
assert page.find('h1', {"data-error-type": "Trying to send a letter that's too long"})
|
||||
|
||||
|
||||
def test_edit_letter_template_postage_page_displays_correctly(
|
||||
|
||||
Reference in New Issue
Block a user