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

IssueNotesRefactor: Fix shared spec.

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