Commit cebfa2048aac73f99ce38a3f016bb4965a0edc20

Authored by Rodrigo Souto
1 parent 001d3b42

products_feature: fix cucumber tests

features/browse_catalogs.feature
@@ -9,7 +9,7 @@ Feature: browse catalogs @@ -9,7 +9,7 @@ Feature: browse catalogs
9 And the following enterprises 9 And the following enterprises
10 | identifier | owner | name | enabled | 10 | identifier | owner | name | enabled |
11 | artebonito | joaosilva | Associação de Artesanato de Bonito | true | 11 | artebonito | joaosilva | Associação de Artesanato de Bonito | true |
12 - And feature "disable_products_for_enterprises" is disabled on environment 12 + And feature "products_for_enterprises" is enabled on environment
13 And the following product_categories 13 And the following product_categories
14 | name | 14 | name |
15 | categ1 | 15 | categ1 |
features/browse_enterprises.feature
@@ -6,7 +6,7 @@ Background: @@ -6,7 +6,7 @@ Background:
6 Given the following enterprises 6 Given the following enterprises
7 | identifier | name | 7 | identifier | name |
8 | shop1 | Shoes Shop | 8 | shop1 | Shoes Shop |
9 - And feature "disable_products_for_enterprises" is disabled on environment 9 + And feature "products_for_enterprises" is enabled on environment
10 And feature "show_balloon_with_profile_links_when_clicked" is enabled on environment 10 And feature "show_balloon_with_profile_links_when_clicked" is enabled on environment
11 11
12 Scenario: show all enterprises 12 Scenario: show all enterprises
features/enterprise_homepage.feature
@@ -21,6 +21,7 @@ Feature: enterprise homepage @@ -21,6 +21,7 @@ Feature: enterprise homepage
21 And the following product 21 And the following product
22 | name | category | owner | 22 | name | category | owner |
23 | Natural Handmade | soap | mayhem | 23 | Natural Handmade | soap | mayhem |
  24 + And feature "products_for_enterprises" is enabled on environment
24 25
25 26
26 Scenario: display profile info 27 Scenario: display profile info
features/manage_inputs.feature
@@ -19,7 +19,7 @@ Feature: manage inputs @@ -19,7 +19,7 @@ Feature: manage inputs
19 And the following product 19 And the following product
20 | owner | category | name | 20 | owner | category | name |
21 | redemoinho | rock | Abbey Road | 21 | redemoinho | rock | Abbey Road |
22 - And feature "disable_products_for_enterprises" is disabled on environment 22 + And feature "products_for_enterprises" is enabled on environment
23 And the following units 23 And the following units
24 | singular | plural | 24 | singular | plural |
25 | Meter | Meters | 25 | Meter | Meters |
features/manage_product_price_details.feature
@@ -19,7 +19,7 @@ Feature: manage product price details @@ -19,7 +19,7 @@ Feature: manage product price details
19 And the following product 19 And the following product
20 | owner | category | name | price | 20 | owner | category | name | price |
21 | redemoinho | rock | Abbey Road | 80.0 | 21 | redemoinho | rock | Abbey Road | 80.0 |
22 - And feature "disable_products_for_enterprises" is disabled on environment 22 + And feature "products_for_enterprises" is enabled on environment
23 And the following inputs 23 And the following inputs
24 | product | category | price_per_unit | amount_used | 24 | product | category | price_per_unit | amount_used |
25 | Abbey Road | Rock | 10.0 | 2 | 25 | Abbey Road | Rock | 10.0 | 2 |
features/manage_products.feature
@@ -9,7 +9,7 @@ Feature: manage products @@ -9,7 +9,7 @@ Feature: manage products
9 And the following enterprises 9 And the following enterprises
10 | identifier | owner | name | enabled | 10 | identifier | owner | name | enabled |
11 | redemoinho | joaosilva | Rede Moinho | true | 11 | redemoinho | joaosilva | Rede Moinho | true |
12 - And feature "disable_products_for_enterprises" is disabled on environment 12 + And feature "products_for_enterprises" is enabled on environment
13 13
14 Scenario: display "create new product" button 14 Scenario: display "create new product" button
15 Given I am logged in as "joaosilva" 15 Given I am logged in as "joaosilva"