add attachment when instructor asking for a review

This commit is contained in:
kara Diaby 2020-03-03 12:52:35 +01:00 committed by GitHub Action
parent cb811df94f
commit b32ed88f9b
6 changed files with 27 additions and 4 deletions

View file

@ -113,7 +113,7 @@ feature 'Inviting an expert:' do
expect(page).to have_text('Cet avis est confidentiel')
fill_in 'avis_answer', with: 'Ma réponse dexpert : cest un oui.'
find('.attachment input[type=file]').attach_file(Rails.root + 'spec/fixtures/files/RIB.pdf')
find('.attachment input[name="avis[piece_justificative_file]"]').attach_file(Rails.root + 'spec/fixtures/files/RIB.pdf')
click_on 'Envoyer votre avis'
expect(page).to have_content('Votre réponse est enregistrée')