add attachment when instructor asking for a review
This commit is contained in:
parent
cb811df94f
commit
b32ed88f9b
6 changed files with 27 additions and 4 deletions
|
@ -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 d’expert : c’est 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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue