ref: master
plugins/solr/features/search_contents.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 |
Feature: search contents As a noosfero user I want to search contents 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 Given the following users | login | name | | joaosilva | Joao Silva | And the following articles | owner | name | body | | joaosilva | bees and butterflies | this is an article about bees and butterflies | | joaosilva | whales and dolphins | this is an article about whales and dolphins | And the following categories as facets | name | | Temรกticas | Scenario: search articles by category Given the following category | name | | Software Livre | And the following articles | owner | name | body | category | | joaosilva | using noosfero | noosfero is a great CMS | software-livre | When I go to the search articles page And I fill in "search-input" with "Software" And I press "Search" Then I should see "using noosfero" within "#search-results" And I should not see "bees and butterflies" And I should not see "whales and dolphins" Scenario: see default facets when searching When I go to the search articles page And I fill in "search-input" with "bees" And I press "Search" Then I should see "Type" within "#facets-menu" And I should see "Published date" within "#facets-menu" And I should see "Profile" within "#facets-menu" And I should see "Categories" within "#facets-menu" Scenario: find enterprises without exact query When I go to the search articles page And I fill in "search-input" with "bees and" And I press "Search" Then I should see "bees and butterflies" within "#search-results" Scenario: filter contents by facet Given the following categories | name | parent | | Software Livre | tematicas | | Big Brother | tematicas | And the following articles | owner | name | body | category | | joaosilva | noosfero and debian | this is an article about noosfero and debian | software-livre | | joaosilva | facebook and 1984 | this is an article about facebook and 1984 | big-brother | When I go to the search articles page And I fill in "search-input" with "this is an article" And I press "Search" And I follow "Software Livre" within "#facets-menu" Then I should see "noosfero and debian" within "#search-results" And I should not see "facebook and 1984" # facet should also be de-selectable When I follow "remove facet" within ".facet-selected" Then I should see "facebook and 1984" Scenario: remember facet filter when searching new query Given the following category | name | parent | | Software Livre | tematicas | And the following articles | owner | name | body | category | | joaosilva | noosfero and debian | this is an article about noosfero and debian | software-livre | | joaosilva | facebook and 1984 | this is an article about facebook and 1984 | big-brother | | joaosilva | facebook defense | facebook is not so bad | software-livre | When I go to the search articles page And I fill in "search-input" with "this is an article" And I press "Search" And I follow "Software Livre" within "#facets-menu" And I fill in "search-input" with "facebook" And I press "Search" Then I should see "facebook defense" within "#search-results" And I should not see "1984" |