Feature: Search software As a user I want to be able to search catalogued software So that I find a software that fit my needs Background: Given "MpogSoftwarePlugin" plugin is enabled And I am logged in as mpog_admin And I go to /admin/plugins And I check "MpogSoftwarePlugin" And I press "Save changes" And I go to /account/logout And the following categories | name | display_in_menu | | Software | true | And the following categories | parent | name | display_in_menu | | Software | Health | true | | Software | Education | true | And the following softwares | name | public_software | categories | | Software One | true | Health | | Software Two | false | Health, Education | Scenario: Show all softwares when open search page Given I go to /search/software_infos Then I should see "Software One" Then I should see "Software Two" Scenario: Show all softwares when search software Given I go to /search/software_infos And I fill in "search-input" with "Software" Then I should see "Software One" Then I should see "Software Two" Scenario: Show softwares one when search software one Given I go to /search/software_infos And I fill in "search-input" with "Software One" And I press "Search" Then I should see "Software One" Then I should not see "Software Two" @selenium Scenario: Show only "Software Two" when searching for "Education" category Given I go to /search/software_infos And I click on anything with selector "#filter-option-catalog-software" And I check "Education" Then I should see "Software Two" Then I should not see "Software One" @selenium Scenario: Show both Software "One" and "Two" when searching for "Health" category Given I go to /search/software_infos And I click on anything with selector "#filter-option-catalog-software" And I check "Health" Then I should see "Software One" Then I should see "Software Two"