Merge pull request #638 from AyuntamientoMadrid/fix-random-test-fails
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
|
||||
|
||||
@@ -5,6 +5,7 @@ feature 'Stats' do
|
||||
background do
|
||||
admin = create(:administrator)
|
||||
login_as(admin.user)
|
||||
visit root_path
|
||||
end
|
||||
|
||||
context 'Summary' do
|
||||
@@ -68,4 +69,4 @@ feature 'Stats' do
|
||||
expect(page).to have_content "Level 2 User (1)"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user