From f0e12d84d2beb0a6bb7b0a51851d457b853ee603 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Tue, 28 Aug 2018 08:12:53 +0000 Subject: Display default status emoji if only message is entered --- spec/features/profiles/user_edit_profile_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/features/profiles') diff --git a/spec/features/profiles/user_edit_profile_spec.rb b/spec/features/profiles/user_edit_profile_spec.rb index 9e60b4995bd..206a3a4fe9a 100644 --- a/spec/features/profiles/user_edit_profile_spec.rb +++ b/spec/features/profiles/user_edit_profile_spec.rb @@ -130,5 +130,15 @@ describe 'User edit profile' do visit user_path(user) expect(page).not_to have_selector '.cover-status' end + + it 'displays a default emoji if only message is entered' do + message = 'a status without emoji' + visit(profile_path) + fill_in 'js-status-message-field', with: message + + within('.js-toggle-emoji-menu') do + expect(page).to have_emoji('speech_balloon') + end + end end end -- cgit v1.2.3