=link_toproject_note_path(@project,note),title: "Remove comment",method: :delete,confirm: 'Are you sure you want to remove comment?',remote: true,class: "danger js-note-delete"do
fill_in"note[note]",with: "Another comment on line 17"
find(".js-note-preview-button").trigger("click")
end
end
# check if previews were rendered separately
it{within("#4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "One comment on line 185")}}
it{within("#342e16cbbd482ac2047dc679b2749d248cc1428f_18_17.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "Another comment on line 17")}}