Fixed capybara actions which caused test failure.