'Scenario: Bookmarks list pagination works as expected for invalid page number
Given that I am a registered user
And I have bookmarked all the 11 units available
And I visit my bookmarks page
Then I should see a bookmarked list
And I should see total page value is 2
Then I enter 3 in the page number input
And I should stay at page 1'

def test_pagination_with_invalid_page_number(self):

    self.setup_test(num_chapters=11)
    self.bookmark_units(num_units=11)
    self.bookmarks_page.visit()
    self.assertTrue(self.bookmarks_page.results_present())
    self.assertEqual(self.bookmarks_page.get_total_pages, 2)
    self.bookmarks_page.go_to_page(3)
    self._verify_pagination_info(bookmark_count_on_current_page=10, header_text='Showing    1-10    out    of    11    total', previous_button_enabled=False, next_button_enabled=True, current_page_number=1, total_pages=2)
