diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-21 06:15:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-21 06:15:00 +0300 |
commit | e3ecb7dc093db47b9491e20d9f20de02b4ac2b6d (patch) | |
tree | e87e5dd85e9c33644b3eddcd47a6214e5537d2c9 /spec/features | |
parent | 4aa6fba6d825b88d23ff37668e78c851bec102b0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/issues/gfm_autocomplete_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/features/issues/gfm_autocomplete_spec.rb b/spec/features/issues/gfm_autocomplete_spec.rb index 728ba07e5c4..58c84d26fea 100644 --- a/spec/features/issues/gfm_autocomplete_spec.rb +++ b/spec/features/issues/gfm_autocomplete_spec.rb @@ -185,7 +185,7 @@ RSpec.describe 'GFM autocomplete', :js, feature_category: :team_planning do end end - describe 'assignees' do + shared_examples 'autocomplete user mentions' do it 'does not wrap with quotes for assignee values' do fill_in 'Comment', with: "@#{user.username}" @@ -252,6 +252,16 @@ RSpec.describe 'GFM autocomplete', :js, feature_category: :team_planning do end end + it_behaves_like 'autocomplete user mentions' + + context 'when mention_autocomplete_backend_filtering is disabled' do + before do + stub_feature_flags(mention_autocomplete_backend_filtering: false) + end + + it_behaves_like 'autocomplete user mentions' + end + context 'if a selected value has special characters' do it 'wraps the result in double quotes' do fill_in 'Comment', with: "~#{label.title[0..2]}" |