fixes some random test failures

This commit is contained in:
kikito
2015-10-23 12:49:51 +02:00
parent ac1507e85e
commit 2bfd012369
2 changed files with 8 additions and 3 deletions

View File

@@ -388,12 +388,16 @@ feature 'Commenting debates' do
within("#comment_#{@comment.id}_votes") do
find('.in_favor a').click
find('.in_favor a').click
within('.in_favor') do
expect(page).to have_content "1"
end
find('.in_favor a').click
within('.in_favor') do
expect(page).to_not have_content "2"
expect(page).to have_content "1"
end
within('.against') do
expect(page).to have_content "0"
end