mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
fix test that wasn't browser neutral
This commit is contained in:
parent
da7077ffcd
commit
fc0d4c412a
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ Capybara::SpecHelper.spec '#within' do
|
|||
expect do
|
||||
@session.within(".//div[@id='doesnotexist']") do
|
||||
end
|
||||
end.to raise_error(Capybara::ElementNotFound, %Q{Unable to find visible xpath ".//div[@id='doesnotexist']" within #<Capybara::Node::Element tag="div" path="/html/body/div[1]">})
|
||||
end.to raise_error(Capybara::ElementNotFound)
|
||||
end.to_not change { @session.has_xpath?(".//div[@id='another_foo']") }.from(false)
|
||||
end
|
||||
end.to_not change { @session.has_xpath?(".//div[@id='another_foo']") }.from(true)
|
||||
|
|
Loading…
Reference in a new issue