OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
tests[OP#48583]: Add emoji mentions feature tests
Kabiru Mwenja73b9d83c31e9
diff --git a/spec/features/wysiwyg/user_mention_spec.rb b/spec/features/wysiwyg/user_mention_spec.rbindex 5f399c20a4f..1ca7805bc6c 100644--- a/spec/features/wysiwyg/user_mention_spec.rb+++ b/spec/features/wysiwyg/user_mention_spec.rb@@ -63,7 +63,7 @@ RSpec.describe 'Wysiwyg work package user mentions',wp_page.ensure_page_loadedend- it 'can autocomplete users and groups' do+ it 'can autocomplete users, groups and emojis' do# Mentioning a user workscomment_field.activate!@@ -132,5 +132,16 @@ RSpec.describe 'Wysiwyg work package user mentions',expect(page).to have_selector('a.mention', text: '@Foo Bar')++ # Mentioning an emoji works+ comment_field.activate!+ comment_field.clear with_backspace: true+ comment_field.input_element.send_keys(":thumbs")+ expect(page).to have_selector('.mention-list-item', text: '👍 thumbs_up')+ expect(page).to have_selector('.mention-list-item', text: '👎 thumbs_down')++ page.find('.mention-list-item', text: '👍 thumbs_up').click++ expect(page).to have_selector('span', text: '👍')endend