Tests improvements

This commit is contained in:
María Checa
2017-10-18 13:17:50 +02:00
parent 6c5ad49a3c
commit fb1a0904cb
2 changed files with 1 additions and 9 deletions

View File

@@ -17,8 +17,6 @@ class Officing::VotersController < Officing::BaseController
origin: "booth",
officer: current_user.poll_officer)
@voter.save!
render 'create.js'
end
private

View File

@@ -107,7 +107,7 @@ feature 'Poll Officing' do
expect(page).to_not have_css('#moderation_menu')
end
scenario 'Officing dashboard available for multiple sessions' do
scenario 'Officing dashboard available for multiple sessions', :js do
poll = create(:poll)
booth = create(:poll_booth)
booth_assignment = create(:poll_booth_assignment, poll: poll, booth: booth)
@@ -137,9 +137,6 @@ feature 'Poll Officing' do
page.should have_content("Here you can validate user documents and store voting results")
visit new_officing_residence_path
within("#side_menu") do
click_link "Validate document"
end
select 'DNI', from: 'residence_document_type'
fill_in 'residence_document_number', with: "12345678Z"
fill_in 'residence_year_of_birth', with: '1980'
@@ -158,9 +155,6 @@ feature 'Poll Officing' do
page.should have_content("Here you can validate user documents and store voting results")
visit new_officing_residence_path
within("#side_menu") do
click_link "Validate document"
end
select 'DNI', from: 'residence_document_type'
fill_in 'residence_document_number', with: "12345678Y"
fill_in 'residence_year_of_birth', with: '1980'