'Scenario: Searching behaves correctly with pagination.
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 with 25 items
And I should see paging header and footer with correct data
And previous button is disabled
And next button is enabled
When I run the search with "note" query
Then I see no error message
And 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'

def test_search_behaves_correctly_with_pagination(self):

    self.search_and_verify()
    self._verify_pagination_info(notes_count_on_current_page=25, header_text='Showing    1-25    out    of    26    total', previous_button_enabled=False, next_button_enabled=True, current_page_number=1, total_pages=2)
    self.assert_viewed_event('Search    Results')
    self.assert_search_event('note', 26)
