update link to download dossier and all pjs
This commit is contained in:
parent
858bbde2d6
commit
dfed8f32ae
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
%ul#print-pj-menu.print-menu.dropdown-content
|
%ul#print-pj-menu.print-menu.dropdown-content
|
||||||
%li
|
%li
|
||||||
- if PiecesJustificativesService.pieces_justificatives_total_size(dossier) < Dossier::TAILLE_MAX_ZIP
|
- if PiecesJustificativesService.pieces_justificatives_total_size(dossier) < Dossier::TAILLE_MAX_ZIP
|
||||||
= link_to "Télécharger toutes les pièces jointes", telecharger_pjs_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
= link_to "Télécharger le dossier et toutes ses pièces jointes", telecharger_pjs_instructeur_dossier_path(dossier.procedure, dossier), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
||||||
- else
|
- else
|
||||||
%p.menu-item Le téléchargement des pièces jointes est désactivé pour les dossiers de plus de #{number_to_human_size Dossier::TAILLE_MAX_ZIP}.
|
%p.menu-item Le téléchargement des pièces jointes est désactivé pour les dossiers de plus de #{number_to_human_size Dossier::TAILLE_MAX_ZIP}.
|
||||||
|
|
||||||
|
|
|
@ -153,7 +153,7 @@ feature 'Instructing a dossier:' do
|
||||||
|
|
||||||
scenario 'A instructeur can download an archive containing a single attachment' do
|
scenario 'A instructeur can download an archive containing a single attachment' do
|
||||||
find(:css, '.attached').click
|
find(:css, '.attached').click
|
||||||
click_on 'Télécharger toutes les pièces jointes'
|
click_on 'Télécharger le dossier et toutes ses pièces jointes'
|
||||||
# For some reason, clicking the download link does not trigger the download in the headless browser ;
|
# For some reason, clicking the download link does not trigger the download in the headless browser ;
|
||||||
# So we need to go to the download link directly
|
# So we need to go to the download link directly
|
||||||
visit telecharger_pjs_instructeur_dossier_path(procedure, dossier)
|
visit telecharger_pjs_instructeur_dossier_path(procedure, dossier)
|
||||||
|
|
Loading…
Reference in a new issue