From aa2a761a58469ad9dc4edbb2a0be6818401b6da7 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Thu, 7 Apr 2016 09:46:29 +0930 Subject: [PATCH] Ensure we choose a plant part --- spec/features/harvests/harvesting_a_crop_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/features/harvests/harvesting_a_crop_spec.rb b/spec/features/harvests/harvesting_a_crop_spec.rb index 6316b7d70..94ea55390 100644 --- a/spec/features/harvests/harvesting_a_crop_spec.rb +++ b/spec/features/harvests/harvesting_a_crop_spec.rb @@ -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