%PDF- %PDF-
| Direktori : /www/varak.net/wiki.varak.net/extensions/CirrusSearch/tests/browser/features/ |
| Current File : //www/varak.net/wiki.varak.net/extensions/CirrusSearch/tests/browser/features/more_like_api.feature |
@clean @more_like_this @api
Feature: More like an article
Scenario: Searching for morelike:<page that doesn't exist> returns no results
When I api search for morelike:IDontExist
Then there are no api search results
Scenario: Searching for morelike:<page> returns pages that are "like" that page
When I api search for morelike:More Like Me 1
Then More Like Me is in the first api search result
But More Like Me 1 is not in the api search results
Scenario: Searching for morelike:<redirect> returns pages that are "like" the page that it is a redirect to
When I api search for morelike:More Like Me Rdir
Then More Like Me is in the first api search result
But More Like Me 1 is not in the api search results
@redirect_loop
Scenario: Searching for morelike:<redirect in a loop> returns no results
When I api search for morelike:Redirect Loop
Then there are no api search results
Scenario: Searching for morelike:<page>|<page>|<page> returns pages that are "like" all those pages
When I api search for morelike:More Like Me 1|More Like Me Set 2 Page 1|More Like Me Set 3 Page 1
Then More Like Me is part of the api search result
And More Like Me Set 2 is part of the api search result
And More Like Me Set 3 is part of the api search result
But More Like Me 1 is not in the api search results
And More Like Me Set 2 Page 1 is not in the api search results
And More Like Me Set 3 Page 1 is not in the api search results