test: add clear-search URL and template tests

Add tests for clear_search_url context and template clear-search button when a search is active.
This commit is contained in:
Miguel Astor
2026-03-25 06:08:00 -04:00
parent b8e7a876a7
commit ab81a0a97d
3 changed files with 39 additions and 0 deletions

View File

@@ -33,6 +33,11 @@
<div class="input-group input-group-sm">
<input type="search" name="search" class="form-control search-input" placeholder="Search..." value="{{ search_text }}">
<span class="input-group-text search-addon"><i class="fa-solid fa-magnifying-glass"></i></span>
{% if search_text %}
<a class="btn btn-sm btn-plain ms-auto" href="{{ clear_search_url }}" aria-label="Clear search">
<i class="fa-solid fa-xmark"></i>
</a>
{% endif %}
</div>
</form>