Update tests to use capybara methods instead of regex

This way, we're getting text as the user would see it.
See: https://github.com/jnicklas/capybara/issues/1341