mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -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:
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user