Tests improvements
This commit is contained in:
@@ -17,8 +17,6 @@ class Officing::VotersController < Officing::BaseController
|
||||
origin: "booth",
|
||||
officer: current_user.poll_officer)
|
||||
@voter.save!
|
||||
|
||||
render 'create.js'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user