'Scenario: Verify that learner-profile link is present on forum discussions page and we can navigate to it.
Given that I am on discussion forum user\'s profile page.
And I can see a username on the page
When I click on my username.
Then I will be navigated to Learner Profile page.
And I can my username on Learner Profile page'

def test_redirects_to_learner_profile(self):

    learner_profile_page = LearnerProfilePage(self.browser, self.PROFILED_USERNAME)
    page = DiscussionUserProfilePage(self.browser, self.course_id, self.profiled_user_id, self.PROFILED_USERNAME)
    page.visit()
    page.click_on_sidebar_username()
    learner_profile_page.wait_for_page()
    self.assertTrue(learner_profile_page.field_is_visible('username'))
