Commit 7fe1e662debd53f2d075aa5a3414b3db0f283718
1 parent
adb064d9
Exists in
master
and in
23 other branches
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,11 +24,12 @@ Feature: categories_block | ||
| 24 | | owner | type | | 24 | | owner | type | |
| 25 | | environment | CategoriesBlock | | 25 | | environment | CategoriesBlock | |
| 26 | And I am logged in as admin | 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 | Scenario: List just product categories | 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 | And I check "Product" | 33 | And I check "Product" |
| 33 | When I press "Save" | 34 | When I press "Save" |
| 34 | Then I should see "Food" | 35 | Then I should see "Food" |
| @@ -37,10 +38,9 @@ Feature: categories_block | @@ -37,10 +38,9 @@ Feature: categories_block | ||
| 37 | And "Steak" should not be visible within "span#category-name" | 38 | And "Steak" should not be visible within "span#category-name" |
| 38 | And "Fiction" should not be visible within "span#category-name" | 39 | And "Fiction" should not be visible within "span#category-name" |
| 39 | 40 | ||
| 40 | - @selenium @ignore-hidden-elements | 41 | + @selenium |
| 41 | Scenario: Show submenu if it exists | 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 | And I check "Product" | 44 | And I check "Product" |
| 45 | And I press "Save" | 45 | And I press "Save" |
| 46 | Then I should see "Food" | 46 | Then I should see "Food" |
| @@ -55,10 +55,9 @@ Feature: categories_block | @@ -55,10 +55,9 @@ Feature: categories_block | ||
| 55 | And I should see "Steak" | 55 | And I should see "Steak" |
| 56 | And I should not see "Fiction" | 56 | And I should not see "Fiction" |
| 57 | 57 | ||
| 58 | - @selenium @ignore-hidden-elements | 58 | + @selenium |
| 59 | Scenario: Show only one submenu per time | 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 | And I check "Product" | 61 | And I check "Product" |
| 63 | And I press "Save" | 62 | And I press "Save" |
| 64 | Then I should see "Book" | 63 | Then I should see "Book" |
| @@ -66,18 +65,16 @@ Feature: categories_block | @@ -66,18 +65,16 @@ Feature: categories_block | ||
| 66 | When I follow "block_2_category_2" | 65 | When I follow "block_2_category_2" |
| 67 | Then I should see "Literature" | 66 | Then I should see "Literature" |
| 68 | 67 | ||
| 69 | - @selenium @ignore-hidden-elements | 68 | + @selenium |
| 70 | Scenario: List just general categories | 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 | And I check "Generic category" | 71 | And I check "Generic category" |
| 74 | When I press "Save" | 72 | When I press "Save" |
| 75 | Then I should see "Wood" | 73 | Then I should see "Wood" |
| 76 | 74 | ||
| 77 | - @selenium @ignore-hidden-elements | 75 | + @selenium |
| 78 | Scenario: List just regions | 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 | And I check "Region" | 78 | And I check "Region" |
| 82 | When I press "Save" | 79 | When I press "Save" |
| 83 | Then I should see "Bahia" | 80 | Then I should see "Bahia" |