'Scenario: Clicking on a Topic Card should take you to the
teams list for that Topic.
Given I am enrolled in a course with a team configuration and a topic
When I visit the Teams page
And I browse topics
And I click on the arrow link to view teams for the first topic
Then I should be on the browse teams page'

def test_go_to_teams_list(self):

    topic = {u'name': u'Example    Topic', u'id': u'example_topic', u'description': 'Description'}
    self.set_team_configuration({u'max_team_size': 1, u'topics': [topic]})
    self.topics_page.visit()
    self.topics_page.browse_teams_for_topic('Example    Topic')
    browse_teams_page = BrowseTeamsPage(self.browser, self.course_id, topic)
    browse_teams_page.wait_for_page()
    self.assertEqual(browse_teams_page.header_name, 'Example    Topic')
    self.assertEqual(browse_teams_page.header_description, 'Description')
