diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-08-14 17:08:28 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-08-14 17:08:28 +0000 |
commit | cf55fb9b964ad47fa2f1eb5703f447bbb614f125 (patch) | |
tree | 7aabdcc059ce89897fbd4f11f1a75888508da6b9 /spec/support | |
parent | 3248911c08755b8c2885e88c65f3af33e6d1800c (diff) | |
parent | 8858ddaf83e57adc6c003e03e72929f6068a6bfa (diff) | |
download | gitlab-ce-cf55fb9b964ad47fa2f1eb5703f447bbb614f125.tar.gz |
Merge branch '34527-make-edit-comment-button-always-available-outside-of-dropdown' into 'master'
Resolve "Make edit comment button always available outside of dropdown"
Closes #34527
See merge request !12931
Diffstat (limited to 'spec/support')
-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 |