提交 6c3723d2 编写于 作者: F Fatih Acet

IssueNotesRefactor: Fix shared spec.

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册