'Scenario: Notes list pagination works as expected for valid & invalid page number
Given that I am a registered user
And I have a course with 26 notes
When I open Notes page
Then I can see notes list contains 25 items
And I should see paging header and footer with correct data
And I should see total page value is 2
When I enter 2 in the page number input
Then I should be navigated to page 2
When I enter 3 in the page number input
Then I should not be navigated away from page 2'

def test_pagination_with_valid_and_invalid_page_number(self):

    self._add_default_notes(extra_notes=21)
    self.notes_page.visit()
    self.assertEqual(self.notes_page.get_total_pages, 2)
    self.notes_page.go_to_page(2)
    self._verify_pagination_info(notes_count_on_current_page=1, header_text='Showing    26-26    out    of    26    total', previous_button_enabled=True, next_button_enabled=False, current_page_number=2, total_pages=2)
    self.notes_page.go_to_page(3)
    self._verify_pagination_info(notes_count_on_current_page=1, header_text='Showing    26-26    out    of    26    total', previous_button_enabled=True, next_button_enabled=False, current_page_number=2, total_pages=2)
