Update item count and totals on Order#merge!

Fixes #4610
Capybara helpers should be available in extensions by default.