Merge pull request #10733 from demarches-simplifiees/fix_flaky_spec

Tech: corrige une autre spec non fiable
This commit is contained in:
LeSim 2024-09-03 12:47:53 +00:00 committed by GitHub
commit 845a4582d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -231,9 +231,9 @@ describe 'Instructing a dossier:', js: true 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, '[aria-controls=print-pj-menu]').click find(:css, '[aria-controls=print-pj-menu]').click
click_on 'Télécharger le dossier et toutes ses 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 # for some member of the team, 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)
DownloadHelpers.wait_for_download DownloadHelpers.wait_for_download