diff options
author | Simon Knox <psimyn@gmail.com> | 2017-07-18 08:09:04 +0300 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-08-10 02:37:25 +0300 |
commit | 8858ddaf83e57adc6c003e03e72929f6068a6bfa (patch) | |
tree | fa1994c3d75d72d511ca495842778aeb78880446 /spec/support/features | |
parent | cfcd1601522c52be96097956b0e3a56be3a3ffcb (diff) |
take edit note button out of dropdown
Diffstat (limited to 'spec/support/features')
-rw-r--r-- | spec/support/features/reportable_note_shared_examples.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/support/features/reportable_note_shared_examples.rb b/spec/support/features/reportable_note_shared_examples.rb index 27e079c01dd..cb483ae9a5a 100644 --- a/spec/support/features/reportable_note_shared_examples.rb +++ b/spec/support/features/reportable_note_shared_examples.rb @@ -7,15 +7,18 @@ shared_examples 'reportable note' do let(:more_actions_selector) { '.more-actions.dropdown' } let(:abuse_report_path) { new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) } + it 'has an edit button' do + expect(comment).to have_selector('.js-note-edit') + end + it 'has a `More actions` dropdown' do expect(comment).to have_selector(more_actions_selector) end - it 'dropdown has Edit, Report and Delete links' do + it 'dropdown has Report and Delete links' do dropdown = comment.find(more_actions_selector) open_dropdown(dropdown) - expect(dropdown).to have_button('Edit comment') expect(dropdown).to have_link('Report as abuse', href: abuse_report_path) expect(dropdown).to have_link('Delete comment', href: note_url(note, project)) end |