Show dynamic message when letter fails validation in validation checker - part 2

This commit is contained in:
Pea Tyczynska
2019-10-25 16:53:31 +01:00
parent 5e10ed23a1
commit f12dc823cb
5 changed files with 21 additions and 13 deletions

View File

@@ -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.find('h1', {"data-error-type": "Trying to send a letter that's too long"})
assert page.find('h1', {"data-error-type": "letter-too-long"})
def test_edit_letter_template_postage_page_displays_correctly(