fill_in"note[note]",with: "Another comment on line 17"
fill_in"note[note]",with: "Another comment on line 17"
find(".js-note-preview-button").trigger("click")
find(".js-note-preview-button").trigger("click")
end
end
end
end
# check if previews were rendered separately
# check if previews were rendered separately
it{within("#0_185_185.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "One comment on line 185")}}
it{within("#4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "One comment on line 185")}}
it{within("#1_18_17.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "Another comment on line 17")}}
it{within("#342e16cbbd482ac2047dc679b2749d248cc1428f_18_17.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "Another comment on line 17")}}