Commit 5342901ea025b50b7fec08469b19d330ea8ed97e
1 parent
552b8ad5
Exists in
master
and in
36 other branches
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>
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
src/noosfero-spb/software_communities/features/software_catalog.feature
... | ... | @@ -103,7 +103,7 @@ Feature: Search software |
103 | 103 | And I go to /profile/software-two/plugin/organization_ratings/new_rating |
104 | 104 | And I press "Enviar" |
105 | 105 | And I go to /search/software_infos |
106 | - When I select "Favorites" from "sort" | |
106 | + When I select "Rating" from "sort" | |
107 | 107 | And I sleep for 3 seconds |
108 | 108 | Then I should see "Software Two" before "Software One" |
109 | 109 | And I should see "1" of this selector "div.medium-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> | ... | ... |