mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 17:28:26 -04:00
Restore old labels on buttons
This commit is contained in:
1 parent
ef2820eb8c
commit
88ac147dda
4 files changed
+5
-5
No files matched your search
@@ -29,4 +29,4 @@
|
||||
|
||||
%a.btn#modalHarvestButton{"data-target" => "#modelHarvestForm", "data-toggle" => "modal", href: ""}
|
||||
= harvest_icon
|
||||
Harvest
|
||||
Record harvest
|
||||
@@ -25,4 +25,4 @@
|
||||
|
||||
%a.btn{"data-target" => "#modelPlantingForm", "data-toggle" => "modal", href: "", id: 'planting-button'}
|
||||
= planting_icon
|
||||
Plant
|
||||
Add to my garden
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user