committed by
Juanjo Bazán
parent
d832d41209
commit
f2ea7fd95e
@@ -4,10 +4,10 @@ App.Comments =
|
||||
$(response_html).insertAfter($("#js-comment-form-#{parent_id}"))
|
||||
|
||||
reset_and_hide_form: (id) ->
|
||||
form = $("#js-comment-form-#{id} form")
|
||||
input = form.find("textarea")
|
||||
form_container = $("#js-comment-form-#{id}")
|
||||
input = form_container.find("form textarea")
|
||||
input.val('')
|
||||
form.hide()
|
||||
form_container.hide()
|
||||
|
||||
reset_form: (id) ->
|
||||
input = $("#js-comment-form-#{id} form textarea")
|
||||
|
||||
@@ -70,7 +70,7 @@ feature 'Comments' do
|
||||
expect(page).to have_content 'It will be done next week.'
|
||||
end
|
||||
|
||||
expect(page).to have_selector("#js-comment-form-comment_#{comment.id}", visible: true)
|
||||
expect(page).to_not have_selector("#js-comment-form-comment_#{comment.id}", visible: true)
|
||||
end
|
||||
|
||||
scenario "N replies", :js do
|
||||
|
||||
Reference in New Issue
Block a user