diff --git a/spec/system/instructeurs/instruction_spec.rb b/spec/system/instructeurs/instruction_spec.rb index 88f79b033..c948fa1d1 100644 --- a/spec/system/instructeurs/instruction_spec.rb +++ b/spec/system/instructeurs/instruction_spec.rb @@ -231,9 +231,9 @@ describe 'Instructing a dossier:', js: true do scenario 'A instructeur can download an archive containing a single attachment' do find(:css, '[aria-controls=print-pj-menu]').click - 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 ; - # So we need to go to the download link directly + # 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 member of the team, so we need to go to the download link directly visit telecharger_pjs_instructeur_dossier_path(procedure, dossier) DownloadHelpers.wait_for_download