capybara test switchover