1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

tests dont need to be optional since native css support in driver is now expected

This commit is contained in:
Thomas Walpole 2013-02-19 09:39:22 -08:00
parent 88242b7a12
commit 9cfac0418a
2 changed files with 6 additions and 11 deletions

View file

@ -42,10 +42,8 @@ Capybara::SpecHelper.spec '#find' do
@session.find(:css, "input[id='test_field']")[:value].should == 'monkey'
end
context "with native css query", requires: [:native_css] do
it "should support pseudo selectors" do
@session.find(:css, 'input:disabled').value.should == 'This is disabled'
end
it "should support pseudo selectors" do
@session.find(:css, 'input:disabled').value.should == 'This is disabled'
end
end
@ -303,11 +301,9 @@ Capybara::SpecHelper.spec '#find' do
end
end
context "with native css query", requires: [:native_css] do
it "should find an element using the given css locator" do
@session.within(:xpath, "//div[@id='for_bar']") do
@session.find(:css, 'input:disabled').value.should == 'James'
end
it "should support pseudo selectors" do
@session.within(:xpath, "//div[@id='for_bar']") do
@session.find(:css, 'input:disabled').value.should == 'James'
end
end
end

View file

@ -10,8 +10,7 @@ Capybara::SpecHelper.run_specs TestClass.new, "DSL", :skip => [
:screenshot,
:frames,
:windows,
:server,
:native_css
:server
]
describe Capybara::DSL do