Ensure we choose a plant part

This commit is contained in:
Daniel O'Connor
2016-04-07 09:46:29 +09:30
parent a800630b01
commit aa2a761a58

View File

@@ -63,6 +63,7 @@ feature "Harvesting a crop", :js do
visit crop_path(maize)
click_link "Harvest this"
within "form#new_harvest" do
select "whole plant", from: '#harvest_plant_part_id'
expect(page).to have_selector "input[value='maize']"
click_button "Save"
end