mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 02:33:03 -04:00
Ensure we choose a plant part
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user