From be1567ecbd85197c6ab7d3df2e26e971eb899430 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 7 Jan 2019 15:04:59 +0000 Subject: [PATCH] messages: improve wording of the "Send" button --- app/views/shared/dossiers/messages/_form.html.haml | 2 +- spec/features/new_user/dossier_shared_examples.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/dossiers/messages/_form.html.haml b/app/views/shared/dossiers/messages/_form.html.haml index c4ff86ef8..e6dbb38ee 100644 --- a/app/views/shared/dossiers/messages/_form.html.haml +++ b/app/views/shared/dossiers/messages/_form.html.haml @@ -8,4 +8,4 @@ (taille max : 20 Mo) %div - = f.submit 'Envoyer', class: 'button primary send', data: { disable: true } + = f.submit 'Envoyer le message', class: 'button primary send', data: { disable: true } diff --git a/spec/features/new_user/dossier_shared_examples.rb b/spec/features/new_user/dossier_shared_examples.rb index 7ff2b8c4e..d9c36a73b 100644 --- a/spec/features/new_user/dossier_shared_examples.rb +++ b/spec/features/new_user/dossier_shared_examples.rb @@ -31,7 +31,7 @@ RSpec.shared_examples 'the user can send messages to the instructeur' do expect(page).to have_content(commentaire.body) fill_in 'commentaire_body', with: message_body - click_on 'Envoyer' + click_on 'Envoyer le message' expect(page).to have_current_path(messagerie_dossier_path(dossier)) expect(page).to have_content('Message envoyé')