mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
IE doesn't support the HTML5 form attribute
This commit is contained in:
parent
bd425d6dfc
commit
0154e53760
2 changed files with 5 additions and 5 deletions
|
@ -169,7 +169,7 @@ Capybara::SpecHelper.spec '#click_button' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with fields associated with the form using the form attribute" do
|
context "with fields associated with the form using the form attribute", requires: [:form_attribute] do
|
||||||
before do
|
before do
|
||||||
@session.click_button('submit_form1')
|
@session.click_button('submit_form1')
|
||||||
@results = extract_results(@session)
|
@results = extract_results(@session)
|
||||||
|
@ -192,7 +192,7 @@ Capybara::SpecHelper.spec '#click_button' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with submit button outside the form defined by <button> tag" do
|
context "with submit button outside the form defined by <button> tag", requires: [:form_attribute] do
|
||||||
before do
|
before do
|
||||||
@session.click_button('outside_button')
|
@session.click_button('outside_button')
|
||||||
@results = extract_results(@session)
|
@results = extract_results(@session)
|
||||||
|
@ -208,7 +208,7 @@ Capybara::SpecHelper.spec '#click_button' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with submit button outside the form defined by <input type='submit'> tag" do
|
context "with submit button outside the form defined by <input type='submit'> tag", requires: [:form_attribute] do
|
||||||
before do
|
before do
|
||||||
@session.click_button('outside_submit')
|
@session.click_button('outside_submit')
|
||||||
@results = extract_results(@session)
|
@results = extract_results(@session)
|
||||||
|
@ -224,7 +224,7 @@ Capybara::SpecHelper.spec '#click_button' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with submit button for form1 located within form2" do
|
context "with submit button for form1 located within form2", requires: [:form_attribute] do
|
||||||
it "should submit the form associated with the button" do
|
it "should submit the form associated with the button" do
|
||||||
@session.click_button('other_form_button')
|
@session.click_button('other_form_button')
|
||||||
expect(extract_results(@session)['which_form']).to eq("form1")
|
expect(extract_results(@session)['which_form']).to eq("form1")
|
||||||
|
|
|
@ -18,7 +18,7 @@ module TestSessions
|
||||||
SeleniumIE = Capybara::Session.new(:selenium_ie, TestApp)
|
SeleniumIE = Capybara::Session.new(:selenium_ie, TestApp)
|
||||||
end
|
end
|
||||||
|
|
||||||
skipped_tests = %i[response_headers status_code trigger modals]
|
skipped_tests = %i[response_headers status_code trigger modals form_attribute]
|
||||||
|
|
||||||
$stdout.puts `#{Selenium::WebDriver::IE.driver_path} --version` if ENV['CI']
|
$stdout.puts `#{Selenium::WebDriver::IE.driver_path} --version` if ENV['CI']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue