1
0
Fork 0
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:
Thomas Walpole 2017-10-03 19:19:32 -07:00
parent da7077ffcd
commit fc0d4c412a

View file

@ -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)