Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-08-28 11:12:53 +0300
committerPhil Hughes <me@iamphill.com>2018-08-28 11:12:53 +0300
commitf0e12d84d2beb0a6bb7b0a51851d457b853ee603 (patch)
tree4340c9d15324da21c08d0680478581cde52cef47 /spec/features/profiles
parentee578b0756cfd94517aa326da1743397ca803481 (diff)
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.rb10
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