Commit 7fe1e662debd53f2d075aa5a3414b3db0f283718

Authored by Rodrigo Souto
1 parent adb064d9

categories-block-feature: displaying hidden buttom-bar

Also removing tag option to show hidden elements that seems to not be
working...
Showing 1 changed file with 12 additions and 15 deletions   Show diff stats
features/categories_block.feature
... ... @@ -24,11 +24,12 @@ Feature: categories_block
24 24 | owner | type |
25 25 | environment | CategoriesBlock |
26 26 And I am logged in as admin
  27 + And I go to /admin/environment_design
  28 + And display ".button-bar"
27 29  
28   - @selenium @ignore-hidden-elements
  30 + @selenium
29 31 Scenario: List just product categories
30   - Given I go to /admin/environment_design
31   - And I follow "Edit" within ".categories-block"
  32 + Given I follow "Edit" within ".categories-block"
32 33 And I check "Product"
33 34 When I press "Save"
34 35 Then I should see "Food"
... ... @@ -37,10 +38,9 @@ Feature: categories_block
37 38 And "Steak" should not be visible within "span#category-name"
38 39 And "Fiction" should not be visible within "span#category-name"
39 40  
40   - @selenium @ignore-hidden-elements
  41 + @selenium
41 42 Scenario: Show submenu if it exists
42   - Given I go to /admin/environment_design
43   - And I follow "Edit" within ".categories-block"
  43 + Given I follow "Edit" within ".categories-block"
44 44 And I check "Product"
45 45 And I press "Save"
46 46 Then I should see "Food"
... ... @@ -55,10 +55,9 @@ Feature: categories_block
55 55 And I should see "Steak"
56 56 And I should not see "Fiction"
57 57  
58   - @selenium @ignore-hidden-elements
  58 + @selenium
59 59 Scenario: Show only one submenu per time
60   - Given I go to /admin/environment_design
61   - And I follow "Edit" within ".categories-block"
  60 + Given I follow "Edit" within ".categories-block"
62 61 And I check "Product"
63 62 And I press "Save"
64 63 Then I should see "Book"
... ... @@ -66,18 +65,16 @@ Feature: categories_block
66 65 When I follow "block_2_category_2"
67 66 Then I should see "Literature"
68 67  
69   - @selenium @ignore-hidden-elements
  68 + @selenium
70 69 Scenario: List just general categories
71   - Given I go to /admin/environment_design
72   - And I follow "Edit" within ".categories-block"
  70 + Given I follow "Edit" within ".categories-block"
73 71 And I check "Generic category"
74 72 When I press "Save"
75 73 Then I should see "Wood"
76 74  
77   - @selenium @ignore-hidden-elements
  75 + @selenium
78 76 Scenario: List just regions
79   - Given I go to /admin/environment_design
80   - And I follow "Edit" within ".categories-block"
  77 + Given I follow "Edit" within ".categories-block"
81 78 And I check "Region"
82 79 When I press "Save"
83 80 Then I should see "Bahia"
... ...