'Scenario: Previous button is working as expected for bookmarks list pagination
Given that I am a registered user
And I have bookmarked all the 12 units available
And I visit my bookmarks page
Then I click on next page button in footer
And I should be navigated to second page
And I should see a bookmarked list with 2 items
And I should see paging header and footer with correct info
Then I click on previous page button
And I should be navigated to first page
And I should see paging header and footer with correct info'

def test_previous_page_button(self):

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