'Scenario: a list of topics should be visible in the "Browse" tab, paginated 12 per page
Given I am enrolled in a course with team configuration and topics
When I visit the Teams page
And I browse topics
Then I should see only the first 12 topics'

def test_topic_pagination(self):

    self.set_team_configuration({u'max_team_size': 10, u'topics': self.create_topics(20)})
    self.topics_page.visit()
    self.assertEqual(len(self.topics_page.topic_cards), TOPICS_PER_PAGE)
    self.assertTrue(self.topics_page.get_pagination_header_text().startswith('Showing    1-12    out    of    20    total'))
    self.assertTrue(self.topics_page.pagination_controls_visible())
    self.assertFalse(self.topics_page.is_previous_page_button_enabled())
    self.assertTrue(self.topics_page.is_next_page_button_enabled())
