Commit 3165815cef3e07eda51226fed17d6803aca61dba

Authored by Daniela Feitosa
2 parents 114fd5d4 f205672c

Merge commit 'refs/merge-requests/148' of git://gitorious.org/noosfero/noosfero …

…into merge-requests/148
app/views/manage_products/_edit_info.rhtml
... ... @@ -21,6 +21,10 @@
21 21 <td class='formlabel'><%= _('Available') %></td>
22 22 <td class='formfield'><%= labelled_radio_button( _('Yes'), 'product[available]', true, @product.available, :id => 'product_available') + labelled_radio_button( _('No'), 'product[available]', false, !@product.available) %></td>
23 23 </tr>
  24 + <tr>
  25 + <td><%= f.label :highlighted, _('Highlight product') %></td>
  26 + <td class='formfield'><%= f.check_box(:highlighted) %></td>
  27 + </tr>
24 28 </table>
25 29  
26 30 <% if !environment.qualifiers.empty? %>
... ...
features/manage_products.feature
... ... @@ -526,3 +526,17 @@ Feature: manage products
526 526 And I follow "Delete qualifier"
527 527 And I press "Save"
528 528 Then I should not see "Organic (Self declared)"
  529 +
  530 + @selenium
  531 + Scenario: Show checkbox to mark product as highlight
  532 + Given the following product_category
  533 + | name |
  534 + | Bicycle |
  535 + And the following products
  536 + | owner | category | name |
  537 + | redemoinho | bicycle | Bike |
  538 + And I am logged in as "joaosilva"
  539 + When I go to Rede Moinho's page of product Bike
  540 + And I follow "Add price and other basic information"
  541 + Then I should see "Highlight product"
  542 + And I check "Highlight product"
... ...