-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14024 from nextcloud/bugfix/14011/paginate-search…
…-results fix(search): Paginate unified search results
- Loading branch information
Showing
3 changed files
with
153 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Feature: conversation-5/search | ||
|
||
Background: | ||
Given user "participant1" exists | ||
|
||
Scenario: Search for conversations with cursor and limit | ||
Given user "participant1" creates room "Room 1" (v4) | ||
| roomType | 2 | | ||
| roomName | Room 1 | | ||
Given user "participant1" creates room "Room 2" (v4) | ||
| roomType | 2 | | ||
| roomName | room 2 | | ||
Given user "participant1" creates room "Room 3" (v4) | ||
| roomType | 2 | | ||
| roomName | ROOM 3 | | ||
Given user "participant1" creates room "Room 4" (v4) | ||
| roomType | 2 | | ||
| roomName | Room 4 | | ||
Given user "participant1" creates room "Room 5" (v4) | ||
| roomType | 2 | | ||
| roomName | Room 5 | | ||
Given user "participant1" creates room "Room 6" (v4) | ||
| roomType | 2 | | ||
| roomName | Room 6 | | ||
And user "participant1" searches for conversations with "o" limit 1 expected cursor "Room 1" | ||
| title | subline | attributes.conversation | | ||
| Room 1 | | Room 1 | | ||
And user "participant1" searches for conversations with "o" offset "Room 4" limit 1 expected cursor "Room 5" | ||
| title | subline | attributes.conversation | | ||
| Room 5 | | Room 5 | | ||
And user "participant1" searches for conversations with "o" offset "Room 4" limit 5 expected cursor "" | ||
| title | subline | attributes.conversation | | ||
| Room 5 | | Room 5 | | ||
| Room 6 | | Room 6 | |