'Scenario: topics should be able to be navigated by page number
Given I am enrolled in a course with team configuration and topics
When I visit the Teams page
And I browse topics
And I enter a valid page number in the page number input
Then I should see that page of topics'

def test_go_to_numbered_page(self):

    self.set_team_configuration({u'max_team_size': 10, u'topics': self.create_topics(25)})
    self.topics_page.visit()
    self.topics_page.go_to_page(3)
    self.assertEqual(len(self.topics_page.topic_cards), 1)
    self.assertTrue(self.topics_page.is_previous_page_button_enabled())
    self.assertFalse(self.topics_page.is_next_page_button_enabled())
