Fixing capybara warning