Skip to content

Correction du téléchargement de facture (#2270)#2271

Open
upskaling wants to merge 2 commits into
afup:masterfrom
upskaling:fix/2270-telechargement-facture
Open

Correction du téléchargement de facture (#2270)#2271
upskaling wants to merge 2 commits into
afup:masterfrom
upskaling:fix/2270-telechargement-facture

Conversation

@upskaling
Copy link
Copy Markdown
Contributor

fixes #2270

<td>{{ invoice.forum_titre }}</td>
<td class="right aligned">
<a href="/pages/administration/index.php?page=forum_facturation&amp;action=telecharger_facture&amp;ref={{ invoice.reference }}"
<a href="{{ url('admin_event_factures_download_facture', {'ref': invoice.reference}) }}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu penses que tu peux ajouter (ou compléter) un test fonctionnel pour valider le lien de téléchargement ?

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 the PDF download link for invoice "REF-TEST-001" in the events invoices section
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plutôt qu'une nouvelle phrase très spécifique à ce test, il vaudrait mieux utiliser l'existant pour lire un pdf.

Tu as des exemples dans ces tests : https://github.com/afup/web/blob/master/tests/behat/features/Admin/Events/FacturesEvennement.feature

@upskaling upskaling force-pushed the fix/2270-telechargement-facture branch from c061629 to 1890b53 Compare June 2, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Téléchargement de la facture redirige sur la page d'admin

3 participants