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:
Pea Tyczynska
2019-10-24 14:17:01 +01:00
parent 4ca4cef1b3
commit c843940b14
5 changed files with 6 additions and 7 deletions

View File

@@ -26,7 +26,7 @@
) }}
{% if letter_too_long %}
{% call banner_wrapper(type='dangerous', id='letter-too-long') %}
{% call banner_wrapper(type='dangerous') %}
{% include "partials/check/letter-too-long.html" %}
{% endcall %}
{% endif %}

View File

@@ -53,7 +53,7 @@
{% set error = 'letter-too-long' %}
{{ govuk_back_link(back_link) }}
<div class="bottom-gutter">
{% call banner_wrapper(type='dangerous', id='letter-too-long') %}
{% call banner_wrapper(type='dangerous') %}
{% include "partials/check/letter-too-long.html" %}
{% endcall %}
</div>

View File

@@ -17,7 +17,7 @@
<div class="grid-row">
{% if template.template_type == 'letter' %}
{% if letter_too_long %}
{% call banner_wrapper(type='dangerous', id='letter-too-long') %}
{% call banner_wrapper(type='dangerous') %}
{% include "partials/check/letter-too-long.html" %}
{% endcall %}
{% endif %}