summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/facets.feature
blob: 8788ab48cee090e807ad02dadd05ee51f84358b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Feature: Search and browse models by their defined facets
  
  Scenario: Requesting facets
    Given Sphinx is running
    And I am searching on developers
    When I am requesting facet results
    Then I should have valid facet results
    And I should have 5 facets
    And I should have the facet State
    And I should have the facet Country
    And I should have the facet Age
    And I should have the facet City
    And I should have the facet Tag Ids
  
  Scenario: Requesting facet results
    Given Sphinx is running
    And I am searching on developers
    When I am requesting facet results
    And I drill down where Country is Australia
    Then I should get 11 results
  
  Scenario: Requesting facet results by multiple facets
    Given Sphinx is running
    And I am searching on developers
    When I am requesting facet results
    And I drill down where Country is Australia and Age is 30
    Then I should get 4 results
    
  Scenario: Requesting facets with classes included
    Given Sphinx is running
    And I am searching on developers
    When I am requesting facet results
    And I want classes included
    Then I should have valid facet results
    And I should have 6 facets
    And I should have the facet Class
  
  Scenario: Requesting MVA facets
    Given Sphinx is running
    And I am searching on developers
    When I am requesting facet results
    And I drill down where tag_ids includes the id of tag Australia
    Then I should get 11 results
    When I am requesting facet results
    And I drill down where tag_ids includes the id of tags Melbourne or Sydney
    Then I should get 5 results