Commit 308c7fb6454e1a3906878f8879c64b25b6b8b32b

Authored by Daniela Feitosa
1 parent 82d4011c
Exists in stable-4.x

Fx software_communities tests

Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Signed-off-by: Gustavo Coelho <gust.rod.coelho@gmail.com>
Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
(cherry picked from commit 5342901ea025b50b7fec08469b19d330ea8ed97e)
src/noosfero-spb/software_communities/features/software_catalog.feature
... ... @@ -104,7 +104,7 @@ Feature: Search software
104 104 And I go to /profile/software-two/plugin/organization_ratings/new_rating
105 105 And I press "Enviar"
106 106 And I go to /search/software_infos
107   - When I select "Favorites" from "sort"
  107 + When I select "Rating" from "sort"
108 108 And I sleep for 3 seconds
109 109 Then I should see "Software Two" before "Software One"
110 110 And there should be 1 div with class "small-star-positive"
... ...
src/noosfero-spb/software_communities/views/search/_catalog_filter.html.erb
... ... @@ -6,8 +6,10 @@
6 6 <ul>
7 7 <% @categories.each do |category| %>
8 8 <li>
9   - <%= check_box_tag("selected_categories_id[]", category.id, @selected_categories_id.include?(category.id), :class => "categories-catalog", @enabled_check_box[category] => "true") %>
10   - <span><%= _("#{category.name}") %></span>
  9 + <label>
  10 + <%= check_box_tag("selected_categories_id[]", category.id, @selected_categories_id.include?(category.id), :class => "categories-catalog", @enabled_check_box[category] => "true") %>
  11 + <span><%= _("#{category.name}") %></span>
  12 + </label>
11 13 </li>
12 14 <% end %>
13 15 </ul>
... ...