mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 05:29:31 -04:00
added test for adding placeholder text
This commit is contained in:
@@ -6,6 +6,10 @@ shared_examples "crop suggest" do |resource|
|
||||
let!(:tomato) { FactoryGirl.create(:tomato) }
|
||||
let!(:roma) { FactoryGirl.create(:roma) }
|
||||
|
||||
scenario "See text in crop auto suggest field" do
|
||||
expect(page).to have_selector("input[placeholder='e.g. lettuce']")
|
||||
end
|
||||
|
||||
scenario "Typing in the crop name displays suggestions" do
|
||||
within "form#new_#{resource}" do
|
||||
fill_autocomplete "crop", :with => "p"
|
||||
|
||||
Reference in New Issue
Block a user