mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
basic test for fill_in options propagation
This commit is contained in:
parent
2ce36695eb
commit
c93c262578
1 changed files with 9 additions and 0 deletions
|
@ -58,6 +58,15 @@ RSpec.describe Capybara::Session do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "#fill_in" do
|
||||||
|
it "should warn that :fill_options are not supported" do
|
||||||
|
expect_any_instance_of(Capybara::Node::Element).to receive(:warn)
|
||||||
|
.with("Options passed to Capybara::Node#set but the driver doesn't support them")
|
||||||
|
@session.visit "/with_html"
|
||||||
|
@session.fill_in 'test_field', with: 'not_moneky', fill_options: { random: true }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe "#attach_file" do
|
describe "#attach_file" do
|
||||||
context "with multipart form" do
|
context "with multipart form" do
|
||||||
it "should submit an empty form-data section if no file is submitted" do
|
it "should submit an empty form-data section if no file is submitted" do
|
||||||
|
|
Loading…
Reference in a new issue