fixes duplicate id in comment form [#21]

This commit is contained in:
rgarcia
2015-07-27 22:22:12 +02:00
parent 24924497f3
commit dea2964f08
3 changed files with 8 additions and 7 deletions

View File

@@ -48,9 +48,9 @@ feature 'Comments' do
visit debate_path(debate)
click_link "Responder"
within "#comment-#{comment.id}" do
within "#js-comment-form-#{comment.id}-Comment" do
fill_in 'comment_body', with: 'La semana que viene está hecho.'
click_button 'Publicar comentario'
click_button 'Publicar respuesta'
end
expect(page).to have_content 'Comentario guardado'