'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 27 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 run the search with "note" query
Then I see that "Search Results" tab appears with 26 notes found
And an event has fired indicating that the Search Results view was selected
And an event has fired recording the search that was performed
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_search_with_valid_and_invalid_page_number(self):

    self.search_and_verify()
    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)
