Commit d493c16f authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Fix reportable spec.

parent 4ab0aaeb
......@@ -121,16 +121,15 @@ export default {
Report as abuse
</a>
</li>
<li>
<a
v-if="canEdit"
@click.prevent="deleteHandler"
class="js-note-delete js-note-delete"
href="#">
<li v-if="canEdit">
<button
@click="deleteHandler"
class="btn btn-transparent js-note-delete js-note-delete"
type="button">
<span class="text-danger">
Delete comment
</span>
</a>
</button>
</li>
</ul>
</div>
......
......@@ -16,8 +16,8 @@ shared_examples 'reportable note' do
open_dropdown(dropdown)
expect(dropdown).to have_button('Edit comment')
expect(dropdown).to have_button('Delete 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
it 'Report button links to a report page' do
......
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