mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-22 06:54:23 -04:00
added test for adding placeholder text
This commit is contained in:
1 parent
4caf7b9b28
commit
b0ee83bc3e
1 file changed
+4
@@ -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