Skip to content

Commit

Permalink
✅ Ajoute un test pour le bouton export d'une question
Browse files Browse the repository at this point in the history
  • Loading branch information
marouria committed Nov 7, 2024
1 parent a8090a0 commit e9f4d00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/features/admin/question_clic_dans_image_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9f4d00

Please sign in to comment.