diff options
Diffstat (limited to 'spec/features/participants_autocomplete_spec.rb')
-rw-r--r-- | spec/features/participants_autocomplete_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/features/participants_autocomplete_spec.rb b/spec/features/participants_autocomplete_spec.rb index cc805e7d369..b2739454b52 100644 --- a/spec/features/participants_autocomplete_spec.rb +++ b/spec/features/participants_autocomplete_spec.rb @@ -33,31 +33,12 @@ RSpec.describe 'Member autocomplete', :js do let(:noteable) { create(:issue, author: author, project: project) } before do - stub_feature_flags(tribute_autocomplete: false) visit project_issue_path(project, noteable) end include_examples "open suggestions when typing @", 'issue' end - describe 'when tribute_autocomplete feature flag is on' do - context 'adding a new note on a Issue' do - let(:noteable) { create(:issue, author: author, project: project) } - - before do - stub_feature_flags(tribute_autocomplete: true) - visit project_issue_path(project, noteable) - - fill_in 'Comment', with: '@' - end - - it 'suggests noteable author and note author' do - expect(find_tribute_autocomplete_menu).to have_content(author.username) - expect(find_tribute_autocomplete_menu).to have_content(note.author.username) - end - end - end - context 'adding a new note on a Merge Request' do let(:noteable) do create(:merge_request, source_project: project, @@ -91,8 +72,4 @@ RSpec.describe 'Member autocomplete', :js do def find_autocomplete_menu find('.atwho-view ul', visible: true) end - - def find_tribute_autocomplete_menu - find('.tribute-container ul', visible: true) - end end |