diff --git a/templates/admin/accounting/search.html.twig b/templates/admin/accounting/search.html.twig index 4ee8ccd3c..d862b66a9 100644 --- a/templates/admin/accounting/search.html.twig +++ b/templates/admin/accounting/search.html.twig @@ -203,8 +203,9 @@ {{ invoice.transaction }} {{ invoice.forum_titre }} - diff --git a/templates/admin/event/ticket/form.html.twig b/templates/admin/event/ticket/form.html.twig index 0da0c3329..624fe29c7 100644 --- a/templates/admin/event/ticket/form.html.twig +++ b/templates/admin/event/ticket/form.html.twig @@ -19,7 +19,7 @@

{% if invoice is defined %}

- Rechercher la facture + Rechercher la facture

{% endif %} {{ form_row(form.invoice.reference) }} diff --git a/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature b/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature index 126052166..6b37489f1 100644 --- a/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature +++ b/tests/behat/features/Admin/Tresorerie/RechercheComptable.feature @@ -20,3 +20,16 @@ Feature: Administration - Trésorerie - Recherche comptable And the "h2.ui.header" element should contain "Cotisations de personnes physiques" And I should see "13/07/2018 >" And I should see "25.00 Paul Personne @paul" + + @reloadDbWithTestData + Scenario: Télécharger une facture Forum depuis la recherche comptable + Given I am logged in as admin and on the Administration + When I follow "Recherche comptable" + Then the ".content h2" element should contain "Recherche comptable" + When I fill in "search[query]" with "Helios Aerospace" + And I press "Rechercher" + Then the "h2.ui.header" element should contain "Factures Forum" + And the ".content table" element should contain "REF-TEST-001" + And the ".content table" element should contain "Helios Aerospace" + When I follow "telecharger_REF-TEST-001" + Then the response header "Content-disposition" should match '#attachment; filename="Facture - Helios Aerospace - (.*).pdf"#'