solve Capybara warning