diff --git a/spec/features/description_page/upload_piece_justificative_spec.rb b/spec/features/description_page/upload_piece_justificative_spec.rb index c688ff15d..c4b728e2a 100644 --- a/spec/features/description_page/upload_piece_justificative_spec.rb +++ b/spec/features/description_page/upload_piece_justificative_spec.rb @@ -43,7 +43,7 @@ feature 'user is on description page' do context 'when he adds a piece_justificative and submit form' do before do file_input_id = 'piece_justificative_' + dossier.pieces_justificatives.first.type.to_s - attach_file(file_inp ut_id, File.path('spec/support/files/dossierPDF.pdf')) + attach_file(file_input_id, File.path('spec/support/files/dossierPDF.pdf')) click_on('Soumettre mon dossier') dossier.reload end