ref: master
plugins/solr/features/search_people.feature
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
Feature: search people As a noosfero user I want to search people In order to find ones that interest me Background: Given the search index is empty And plugin Solr is enabled on environment And the following users | login | name | | joaosilva | Joao Silva | | josearaujo | Jose Araujo | Scenario: see category facets when searching Given the following categories as facets | name | | Temáticas | When I go to the search people page And I fill in "search-input" with "joao" And I press "Search" Then I should see "Temáticas" within "#facets-menu" Scenario: search people by category Given the following category | name | | Software Livre | And the following users | login | name | category | | linus | Linus Torvalds | software-livre | When I go to the search people page And I fill in "search-input" with "software livre" And I press "Search" Then I should see "Linus Torvalds" within "#search-results" And I should not see "Joao Silva" And I should not see "Jose Araujo" Scenario: find person without exact query Given the following users | login | name | | jsilva | Joao Adalberto de Oliveira Silva | When I go to the search people page And I fill in "search-input" with "Adalberto Silva" And I press "Search" Then I should see "Joao Adalberto de Oliveira Silva" within "#search-results" Given the following categories as facets | name | | Temáticas | And the following category | name | parent | | Software Livre | tematicas | And the following users | login | name | category | | linus | Linus Torvalds | software-livre | | other | Other Linus | | When I go to the search people page And I fill in "search-input" with "Linus" And I press "Search" And I follow "Software Livre" within "#facets-menu" Then I should see "Linus Torvalds" within "#search-results" And I should not see "Other Linus" # facet should also be de-selectable When I follow "remove facet" within ".facet-selected" Then I should see "Other Linus" Scenario: remember facet filter when searching new query Given the following categories as facets | name | | Temáticas | And the following category | name | parent | | Software Livre | tematicas | And the following users | login | name | category | | linus | Linus Torvalds | software-livre | | rilin | Richard Linus | | | stall | Richard Stallman | software-livre | When I go to the search people page And I fill in "search-input" with "Linus" And I press "Search" And I follow "Software Livre" within "#facets-menu" And I fill in "search-input" with "Richard" And I press "Search" Then I should see "Richard Stallman" within "#search-results" And I should not see "Richard Linus" |