Update harvest spec

This commit is contained in:
Brenda Wallace
2019-06-09 10:16:34 +12:00
parent cf3068dc08
commit 5957309dea

View File

@@ -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"