spec: fix flaky
This commit is contained in:
parent
31cc6578aa
commit
523e4fff41
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue