From 5957309dea07329ac2e28cfd1f072ad2b593c033 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 9 Jun 2019 10:16:34 +1200 Subject: [PATCH] Update harvest spec --- spec/features/harvests/harvesting_a_crop_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/features/harvests/harvesting_a_crop_spec.rb b/spec/features/harvests/harvesting_a_crop_spec.rb index 1a9fa0c24..e91f84c81 100644 --- a/spec/features/harvests/harvesting_a_crop_spec.rb +++ b/spec/features/harvests/harvesting_a_crop_spec.rb @@ -68,9 +68,7 @@ describe "Harvesting a crop", :js, :elasticsearch do let!(:planting) { create :planting, crop: maize, owner: member, garden: member.gardens.first } before do visit planting_path(planting) - within ".planting-actions" do - click_button "Record Harvest" - end + click_link "Record Harvest" choose plant_part.name click_button "Save"