fix spec
This commit is contained in:
parent
5a571a3535
commit
79669dba37
1 changed files with 4 additions and 3 deletions
|
@ -120,14 +120,15 @@ describe 'Instructing a dossier:', js: true, retry: 3 do
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_text('Nous générons cet export.')
|
expect(page).to have_text('Nous générons cet export.')
|
||||||
click_on "Télécharger un dossier"
|
|
||||||
|
click_on "voir les exports"
|
||||||
expect(page).to have_text('Un export au format .csv est en train d’être généré')
|
expect(page).to have_text('Un export au format .csv est en train d’être généré')
|
||||||
|
|
||||||
assert_performed_jobs 2 do
|
assert_performed_jobs 2 do
|
||||||
perform_enqueued_jobs(only: ExportJob)
|
perform_enqueued_jobs(only: ExportJob)
|
||||||
end
|
end
|
||||||
page.driver.browser.navigate.refresh
|
|
||||||
|
|
||||||
click_on "Télécharger un dossier"
|
page.driver.browser.navigate.refresh
|
||||||
expect(page).to have_text('Télécharger l’export au format .csv')
|
expect(page).to have_text('Télécharger l’export au format .csv')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue