diff --git a/spec/features/admin/question_clic_dans_image_spec.rb b/spec/features/admin/question_clic_dans_image_spec.rb index 447ea6836..7eef0b4b7 100644 --- a/spec/features/admin/question_clic_dans_image_spec.rb +++ b/spec/features/admin/question_clic_dans_image_spec.rb @@ -22,6 +22,14 @@ it 'affiche la transcription associée' do expect(page).to have_content 'Comment ça va ?' end + + it "affiche le bouton d'export" do + expect(page).to have_link 'Exporter le contenu de la question' + within('.action-items-sidebar') do + click_on 'Exporter le contenu de la question' + end + expect(page.response_headers['Content-Type']).to eq 'application/vnd.ms-excel' + end end describe 'index' do