Commit d493c16f authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Fix reportable spec.

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