Some of the Capybara finder options return a generic Capybara::ElementNotFound exception without outputting the options requested.
This element is visible, but the test expects it to not be visible.
@page.main_nav.wait_until(1).not.visible
and resulting stacktrace
Capybara::ElementNotFound: Unable to find css "#main-nav"
The exception is confusing, because that element is clearly visible on the page when debugging.
Make the exceptions raised more explicit with better messaging.
Some of the Capybara finder options return a generic
Capybara::ElementNotFoundexception without outputting the options requested.This element is visible, but the test expects it to not be visible.
@page.main_nav.wait_until(1).not.visibleand resulting stacktrace
Capybara::ElementNotFound: Unable to find css "#main-nav"The exception is confusing, because that element is clearly visible on the page when debugging.
Make the exceptions raised more explicit with better messaging.