spec/watirspec/elements/form_spec.rb in watir-6.6.0 vs spec/watirspec/elements/form_spec.rb in watir-6.6.1
- old
+ new
@@ -47,25 +47,23 @@
it "raises MissingWayOfFindingObjectException when 'how' argument is invalid" do
expect { browser.form(no_such_how: 'some_value').exists? }.to raise_error(Watir::Exception::MissingWayOfFindingObjectException)
end
end
- bug "https://bugzilla.mozilla.org/show_bug.cgi?id=1290985", :firefox do
- describe "#submit" do
- it "submits the form" do
- browser.form(id: "delete_user").submit
- Watir::Wait.until { !browser.url.include? 'forms_with_input_elements.html' }
- expect(browser.text).to include("Semantic table")
- end
+ describe "#submit" do
+ it "submits the form" do
+ browser.form(id: "delete_user").submit
+ Watir::Wait.until { !browser.url.include? 'forms_with_input_elements.html' }
+ expect(browser.text).to include("Semantic table")
+ end
- not_compliant_on :safari do
- it "triggers onsubmit event and takes its result into account" do
- form = browser.form(name: "user_new")
- form.submit
- expect(form).to exist
- expect(messages.size).to eq 1
- expect(messages[0]).to eq "submit"
- end
+ not_compliant_on :safari do
+ it "triggers onsubmit event and takes its result into account" do
+ form = browser.form(name: "user_new")
+ form.submit
+ expect(form).to exist
+ expect(messages.size).to eq 1
+ expect(messages[0]).to eq "submit"
end
end
end
end