diff options
author | Stan Hu <stanhu@gmail.com> | 2017-08-16 10:48:48 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-08-16 10:48:48 +0300 |
commit | d3e81673827e5171133f58f01b7054e3b602db7a (patch) | |
tree | f34598bd9355c9b68138917a48f2156f46abead8 /spec/support/features | |
parent | 767dffcc34f5088ea472160380a84c093aa02c73 (diff) | |
parent | 441ba5f35bd3415cd26bf3eeaead509181313058 (diff) |
Merge branch 'master' into sh-headless-chrome-support
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 |