diff --git a/features/search.feature b/features/search.feature index 4d0bd8d..78e2006 100644 --- a/features/search.feature +++ b/features/search.feature @@ -88,7 +88,7 @@ Feature: search Scenario: search different types of entities with the same query Given the following enterprises | identifier | name | - | colivre | Colivre - Noosfero dev. | + | colivre_dev | Colivre - Noosfero dev. | And the following communities | identifier | name | | noosfero-users | Noosfero users | @@ -96,8 +96,8 @@ Feature: search | name | | Development | And the following products - | owner | name | category | - | colivre | Noosfero platform | Development | + | owner | name | category | + | colivre_dev | Noosfero platform | Development | When I go to the search page And I fill in "query" with "noosfero" And I press "Search" diff --git a/features/search_products.feature b/features/search_products.feature index 9bdbe35..afeb19c 100644 --- a/features/search_products.feature +++ b/features/search_products.feature @@ -143,15 +143,12 @@ Feature: search products Then I should see "Arte em Madeira" within "#search-results" Scenario: find products without exact query - Given the following enterprise - | identifier | name | - | colivre | Colivre | - And the following product_category + Given the following product_category | name | | Software Livre | And the following products - | owner | name | category | - | colivre | Noosfero Social Network Platform | software-livre | + | owner | name | category | + | colivre-ent | Noosfero Social Network Platform | software-livre | When I go to the search products page And I fill in "query" with "Noosfero Network" And I press "Search" @@ -160,7 +157,6 @@ Feature: search products Scenario: filter products by facet Given the following enterprises | identifier | name | - | colivre | Colivre | | fb | FB inc. | And the following categories as facets | name | @@ -170,9 +166,9 @@ Feature: search products | Software Livre | tematicas | | Big Brother | tematicas | And the following products - | owner | name | category | - | colivre | Noosfero Network | software-livre | - | fb | Facebook Network | big-brother | + | owner | name | category | + | colivre-ent | Noosfero Network | software-livre | + | fb | Facebook Network | big-brother | When I go to the search products page And I fill in "query" with "Network" And I press "Search" @@ -183,7 +179,6 @@ Feature: search products Scenario: remember facet filter when searching new query Given the following enterprises | identifier | name | - | colivre | Colivre | | fb | FB inc. | | other | Other | And the following categories as facets @@ -195,11 +190,11 @@ Feature: search products | Big Brother | tematicas | | Other | tematicas | And the following products - | owner | name | category | - | colivre | Noosfero Network | software-livre | - | fb | Facebook Network | big-brother | - | other | Other open | software-livre | - | other | Other closed | big-brother | + | owner | name | category | + | colivre-ent | Noosfero Network | software-livre | + | fb | Facebook Network | big-brother | + | other | Other open | software-livre | + | other | Other closed | big-brother | When I go to the search products page And I fill in "query" with "Network" And I press "Search" diff --git a/test/functional/enterprise_registration_controller_test.rb b/test/functional/enterprise_registration_controller_test.rb index 669f724..2771fc9 100644 --- a/test/functional/enterprise_registration_controller_test.rb +++ b/test/functional/enterprise_registration_controller_test.rb @@ -39,7 +39,7 @@ all_fixtures env = Environment.default env.organization_approval_method = :admin env.save - region = fast_create(Region) + region = fast_create(Region, {}, :search => true) data = { :name => 'My new enterprise', :identifier => 'mynew', :region => region } create_enterprise = CreateEnterprise.new(data) -- libgit2 0.21.2