Try not to hard code the path like this because you're not guaranteed that the team's ID will be 1. You should use your routing helpers like `visit team_path(team)`.