fixes duplicate id in comment form [#21]
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user