Added spec which proves that URL fields work, closes #80

This commit is contained in:
Jonas Nicklas 2010-06-29 21:58:57 +02:00
parent ae355e0fe7
commit d72d9998ff
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ shared_examples_for "fill_in" do
extract_results(@session)['street'].should == 'Avenue Q'
end
it "should fill in a url field by label without for" do
@session.fill_in('Html5 Url', :with => 'http://www.avenueq.com')
@session.click_button('html5_submit')
extract_results(@session)['html5_url'].should == 'http://www.avenueq.com'
end
it "should favour exact label matches over partial matches" do
@session.fill_in('Name', :with => 'Harry Jones')
@session.click_button('awesome')