fixes some random test failures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user