diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-08-28 08:12:53 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-08-28 08:12:53 +0000 |
commit | f0e12d84d2beb0a6bb7b0a51851d457b853ee603 (patch) | |
tree | 4340c9d15324da21c08d0680478581cde52cef47 /spec/features/profiles | |
parent | ee578b0756cfd94517aa326da1743397ca803481 (diff) | |
download | gitlab-ce-f0e12d84d2beb0a6bb7b0a51851d457b853ee603.tar.gz |
Display default status emoji if only message is entered
Diffstat (limited to 'spec/features/profiles')
-rw-r--r-- | spec/features/profiles/user_edit_profile_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |