fixes #2272 Added Capybara intergration tests