adapt for new TestRepo and capybara