Commit dff60db2 authored by Filipa Lacerda's avatar Filipa Lacerda

Look for a button on issues

parent 1852dfa3
...@@ -16,13 +16,12 @@ shared_examples 'reportable note' do |type| ...@@ -16,13 +16,12 @@ shared_examples 'reportable note' do |type|
open_dropdown(dropdown) open_dropdown(dropdown)
if type == 'issue' if type == 'issue'
expect(dropdown).to have_button('Edit comment')
expect(dropdown).to have_button('Delete comment') expect(dropdown).to have_button('Delete comment')
else else
expect(dropdown).to have_link('Edit comment')
expect(dropdown).to have_link('Delete comment') expect(dropdown).to have_link('Delete comment')
end end
expect(dropdown).to have_button('Edit comment')
expect(dropdown).to have_link('Report as abuse', href: abuse_report_path) expect(dropdown).to have_link('Report as abuse', href: abuse_report_path)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment