Add specs for cumulative recounts totals

This commit is contained in:
Javi Martín
2019-03-06 16:04:05 +01:00
parent 26d1024cfc
commit db6229e38e

View File

@@ -239,6 +239,16 @@ feature 'Admin polls' do
click_link "Recounting" click_link "Recounting"
within("#totals") do
within("#total_final") do
expect(page).to have_content("#{55555 + 63}")
end
within("#total_system") do
expect(page).to have_content("2")
end
end
expect(page).to have_css ".booth_recounts", count: 3 expect(page).to have_css ".booth_recounts", count: 3
within("#poll_booth_assignment_#{booth_assignment.id}_recounts") do within("#poll_booth_assignment_#{booth_assignment.id}_recounts") do