Commit 6c3723d2 authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Fix shared spec.

parent a2326c8a
......@@ -122,14 +122,15 @@ export default {
</a>
</li>
<li v-if="canEdit">
<button
@click="deleteHandler"
<a
@click.prevent="deleteHandler"
class="btn btn-transparent js-note-delete js-note-delete"
href="#"
type="button">
<span class="text-danger">
Delete comment
</span>
</button>
</a>
</li>
</ul>
</div>
......
......@@ -88,7 +88,7 @@ export default {
</script>
<template>
<div class="note-edit-form">
<div class="note-edit-form current-note-edit-form">
<div
v-if="conflictWhileEditing"
class="js-conflict-edit-warning alert alert-danger">
......
......@@ -16,7 +16,7 @@ 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('Delete comment')
expect(dropdown).to have_link('Report as abuse', href: abuse_report_path)
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