I have a test with RSpec as below
describe "visitor do search" do before do fill_in "keyword", with: "London" click_button "search_all" end it "should visit search result path" do page.should have_selector('title', :text => "Search Result") end end
I want to remove the search_all button and change it with an event, for example, by pressing the enter key.
How to write code for this with RSpec?
Hi,
Glend maatita
source share