Migrating checkout functionality on capybara