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
# TODO: fix
it{within("#4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "One comment on line 185")}}
#it 'should check if previews were rendered separately' do
it{within("#342e16cbbd482ac2047dc679b2749d248cc1428f_18_17.line_holder + .js-temp-notes-holder"){shouldhave_css(".js-note-preview",text: "Another comment on line 17")}}
#within("tr[id='4735dfc552ad7bf15ca468adc3cad9d05b624490_185_185'] + .js-temp-notes-holder") do
#should have_css(".js-note-preview", text: "One comment on line 185")
#end
#within("tr[id='342e16cbbd482ac2047dc679b2749d248cc1428f_18_17'] + .js-temp-notes-holder") do
#should have_css(".js-note-preview", text: "Another comment on line 17")