diff --git a/app/views/harvests/_modal.html.haml b/app/views/harvests/_modal.html.haml index b266566ca..ac93c153b 100644 --- a/app/views/harvests/_modal.html.haml +++ b/app/views/harvests/_modal.html.haml @@ -29,4 +29,4 @@ %a.btn#modalHarvestButton{"data-target" => "#modelHarvestForm", "data-toggle" => "modal", href: ""} = harvest_icon - Harvest + Record harvest diff --git a/app/views/plantings/_modal.html.haml b/app/views/plantings/_modal.html.haml index a4e695893..11d89ee32 100644 --- a/app/views/plantings/_modal.html.haml +++ b/app/views/plantings/_modal.html.haml @@ -25,4 +25,4 @@ %a.btn{"data-target" => "#modelPlantingForm", "data-toggle" => "modal", href: "", id: 'planting-button'} = planting_icon - Plant + Add to my garden diff --git a/spec/features/harvests/harvesting_a_crop_spec.rb b/spec/features/harvests/harvesting_a_crop_spec.rb index 1e83c1a48..967be54c2 100644 --- a/spec/features/harvests/harvesting_a_crop_spec.rb +++ b/spec/features/harvests/harvesting_a_crop_spec.rb @@ -54,7 +54,7 @@ describe "Harvesting a crop", :js, :search do describe "Harvesting from crop page" do before do visit crop_path(maize) - click_link id: 'modalHarvestButton' + click_link "Record harvest" click_link plant_part.name end @@ -66,7 +66,7 @@ describe "Harvesting a crop", :js, :search do let!(:planting) { create :planting, crop: maize, owner: member, garden: member.gardens.first } before do visit planting_path(planting) - click_link id: 'modalHarvestButton' + click_link "Record harvest" click_link plant_part.name end diff --git a/spec/features/plantings/planting_a_crop_spec.rb b/spec/features/plantings/planting_a_crop_spec.rb index 34db09af1..575911c45 100644 --- a/spec/features/plantings/planting_a_crop_spec.rb +++ b/spec/features/plantings/planting_a_crop_spec.rb @@ -166,7 +166,7 @@ describe "Planting a crop", :js, :search do it "Planting from crop page" do visit crop_path(maize) - click_link "Add to garden" + click_link "Add to my garden" click_link "Orchard" expect(page).to have_content "planting was successfully created" expect(page).to have_content "maize"