spec/watirspec/hns_spec.rb in watir-webdriver-0.0.9 vs spec/watirspec/hns_spec.rb in watir-webdriver-0.1.0
- old
+ new
@@ -4,9 +4,17 @@
describe "H1s", "H2s", "H3s", "H4s", "H5s", "H6s" do
before :each do
browser.goto(WatirSpec.files + "/non_control_elements.html")
end
+ bug "http://github.com/jarib/celerity/issues#issue/25", :celerity do
+ describe "with selectors" do
+ it "returns the matching elements" do
+ browser.h1s(:class => "primary").to_a.should == [browser.h1(:class => "primary")]
+ end
+ end
+ end
+
describe "#length" do
it "returns the number of h1s" do
browser.h2s.length.should == 9
end
end