mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Added spec which proves that URL fields work, closes #80
This commit is contained in:
parent
ae355e0fe7
commit
d72d9998ff
1 changed files with 6 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue