'Scenario: User can navigate to profile page via team member profile image.
Given I am enrolled in a course with a team configuration, a topic,
and a team belonging to that topic of which I am a member
When I visit the Team page for that team
Then I should see profile images for the team members
When I click on the first profile image
Then I should be taken to the user\'s profile page
And I should see the username on profile page'

def test_user_can_navigate_to_members_profile_page(self):

    self._set_team_configuration_and_membership()
    self.team_page.visit()
    learner_name = self.team_page.first_member_username
    self.team_page.click_first_profile_image()
    learner_profile_page = LearnerProfilePage(self.browser, learner_name)
    learner_profile_page.wait_for_page()
    learner_profile_page.wait_for_field('username')
    self.assertTrue(learner_profile_page.field_is_visible('username'))
