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:
parent
88242b7a12
commit
9cfac0418a
2 changed files with 6 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -10,8 +10,7 @@ Capybara::SpecHelper.run_specs TestClass.new, "DSL", :skip => [
|
|||
:screenshot,
|
||||
:frames,
|
||||
:windows,
|
||||
:server,
|
||||
:native_css
|
||||
:server
|
||||
]
|
||||
|
||||
describe Capybara::DSL do
|
||||
|
|
Loading…
Reference in a new issue