Commit eea240ad3ccae6f0dbf742ee037674897f05c0fd

Authored by Rafael Martins
1 parent 6e33a8f4

Small fixes for functional and cucumber tests

features/search.feature
... ... @@ -88,7 +88,7 @@ Feature: search
88 88 Scenario: search different types of entities with the same query
89 89 Given the following enterprises
90 90 | identifier | name |
91   - | colivre | Colivre - Noosfero dev. |
  91 + | colivre_dev | Colivre - Noosfero dev. |
92 92 And the following communities
93 93 | identifier | name |
94 94 | noosfero-users | Noosfero users |
... ... @@ -96,8 +96,8 @@ Feature: search
96 96 | name |
97 97 | Development |
98 98 And the following products
99   - | owner | name | category |
100   - | colivre | Noosfero platform | Development |
  99 + | owner | name | category |
  100 + | colivre_dev | Noosfero platform | Development |
101 101 When I go to the search page
102 102 And I fill in "query" with "noosfero"
103 103 And I press "Search"
... ...
features/search_products.feature
... ... @@ -143,15 +143,12 @@ Feature: search products
143 143 Then I should see "Arte em Madeira" within "#search-results"
144 144  
145 145 Scenario: find products without exact query
146   - Given the following enterprise
147   - | identifier | name |
148   - | colivre | Colivre |
149   - And the following product_category
  146 + Given the following product_category
150 147 | name |
151 148 | Software Livre |
152 149 And the following products
153   - | owner | name | category |
154   - | colivre | Noosfero Social Network Platform | software-livre |
  150 + | owner | name | category |
  151 + | colivre-ent | Noosfero Social Network Platform | software-livre |
155 152 When I go to the search products page
156 153 And I fill in "query" with "Noosfero Network"
157 154 And I press "Search"
... ... @@ -160,7 +157,6 @@ Feature: search products
160 157 Scenario: filter products by facet
161 158 Given the following enterprises
162 159 | identifier | name |
163   - | colivre | Colivre |
164 160 | fb | FB inc. |
165 161 And the following categories as facets
166 162 | name |
... ... @@ -170,9 +166,9 @@ Feature: search products
170 166 | Software Livre | tematicas |
171 167 | Big Brother | tematicas |
172 168 And the following products
173   - | owner | name | category |
174   - | colivre | Noosfero Network | software-livre |
175   - | fb | Facebook Network | big-brother |
  169 + | owner | name | category |
  170 + | colivre-ent | Noosfero Network | software-livre |
  171 + | fb | Facebook Network | big-brother |
176 172 When I go to the search products page
177 173 And I fill in "query" with "Network"
178 174 And I press "Search"
... ... @@ -183,7 +179,6 @@ Feature: search products
183 179 Scenario: remember facet filter when searching new query
184 180 Given the following enterprises
185 181 | identifier | name |
186   - | colivre | Colivre |
187 182 | fb | FB inc. |
188 183 | other | Other |
189 184 And the following categories as facets
... ... @@ -195,11 +190,11 @@ Feature: search products
195 190 | Big Brother | tematicas |
196 191 | Other | tematicas |
197 192 And the following products
198   - | owner | name | category |
199   - | colivre | Noosfero Network | software-livre |
200   - | fb | Facebook Network | big-brother |
201   - | other | Other open | software-livre |
202   - | other | Other closed | big-brother |
  193 + | owner | name | category |
  194 + | colivre-ent | Noosfero Network | software-livre |
  195 + | fb | Facebook Network | big-brother |
  196 + | other | Other open | software-livre |
  197 + | other | Other closed | big-brother |
203 198 When I go to the search products page
204 199 And I fill in "query" with "Network"
205 200 And I press "Search"
... ...
test/functional/enterprise_registration_controller_test.rb
... ... @@ -39,7 +39,7 @@ all_fixtures
39 39 env = Environment.default
40 40 env.organization_approval_method = :admin
41 41 env.save
42   - region = fast_create(Region)
  42 + region = fast_create(Region, {}, :search => true)
43 43  
44 44 data = { :name => 'My new enterprise', :identifier => 'mynew', :region => region }
45 45 create_enterprise = CreateEnterprise.new(data)
... ...