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
1 changed files with 1 additions and 1 deletions

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)