'Scenario: Visiting a topic with fewer teams than the page size should
all those teams on one page.
Given I am enrolled in a course with a team configuration and a topic
When I visit the Teams page for that topic
Then I should see the correct page header
And I should see a pagination header showing the number of teams
And I should see all the expected team cards
And I should see a button to add a team
And I should not see a pagination footer'

def test_teams_one_page(self):

    teams = self.teams_with_default_sort_order(self.create_teams(self.topic, self.TEAMS_PAGE_SIZE, time_between_creation=1))
    self.browse_teams_page.visit()
    self.verify_page_header()
    self.assertTrue(self.browse_teams_page.get_pagination_header_text().startswith('Showing    1-10    out    of    10    total'))
    self.verify_teams(self.browse_teams_page, teams)
    self.assertFalse(self.browse_teams_page.pagination_controls_visible(), msg='Expected    paging    footer    to    be    invisible')
