spec: fix flaky

This commit is contained in:
simon lehericey 2024-09-02 15:54:22 +02:00
parent 31cc6578aa
commit 523e4fff41
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

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
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