Add and use textarea component from GOV.UK Frontend

For the "Something else" branding form we want the form label to be the
title. This brings in the textarea component from GOV.UK Frontend in
order to do this since that contains code to set a the textarea label as
the page heading in an accessible way.

The rest of the textarea fields have not been switched to use the new
component yet.
This commit is contained in:
Katie Smith
2022-01-28 16:28:35 +00:00
parent 88a003ff72
commit f9c551a558
5 changed files with 63 additions and 12 deletions

View File

@@ -5704,7 +5704,7 @@ def test_submit_email_branding_something_else_page_shows_error_if_textbox_is_emp
_follow_redirects=True,
)
assert normalize_spaces(page.h1.text) == 'Describe the branding you want'
assert normalize_spaces(page.select_one('.error-message').text) == 'Cannot be empty'
assert normalize_spaces(page.select_one('.govuk-error-message').text) == 'Error: Cannot be empty'
def test_service_settings_links_to_branding_request_page_for_letters(