Commit 87ca56c59e66b8fe47e84dbc4e7b676a75acfff5

Authored by Rodrigo Souto
1 parent 643c6a53

categories-block-features: simulate hover to follow link

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
features/categories_block.feature
@@ -25,9 +25,14 @@ Feature: categories_block @@ -25,9 +25,14 @@ Feature: categories_block
25 | environment | CategoriesBlock | 25 | environment | CategoriesBlock |
26 And I am logged in as admin 26 And I am logged in as admin
27 27
  28 + # Note that this @ignore-hidden-elements only works for seeing hidden
  29 + # elements. It actually doesn't work for following hidden link or pressing
  30 + # hidden buttons. That's why it's necessary to use this display hack to show
  31 + # the link.
28 @selenium @ignore-hidden-elements 32 @selenium @ignore-hidden-elements
29 Scenario: List just product categories 33 Scenario: List just product categories
30 Given I go to /admin/environment_design 34 Given I go to /admin/environment_design
  35 + And display ".categories-block .button-bar"
31 And I follow "Edit" within ".categories-block" 36 And I follow "Edit" within ".categories-block"
32 And I check "Product" 37 And I check "Product"
33 When I press "Save" 38 When I press "Save"
@@ -40,6 +45,7 @@ Feature: categories_block @@ -40,6 +45,7 @@ Feature: categories_block
40 @selenium @ignore-hidden-elements 45 @selenium @ignore-hidden-elements
41 Scenario: Show submenu if it exists 46 Scenario: Show submenu if it exists
42 Given I go to /admin/environment_design 47 Given I go to /admin/environment_design
  48 + And display ".categories-block .button-bar"
43 And I follow "Edit" within ".categories-block" 49 And I follow "Edit" within ".categories-block"
44 And I check "Product" 50 And I check "Product"
45 And I press "Save" 51 And I press "Save"
@@ -58,6 +64,7 @@ Feature: categories_block @@ -58,6 +64,7 @@ Feature: categories_block
58 @selenium @ignore-hidden-elements 64 @selenium @ignore-hidden-elements
59 Scenario: Show only one submenu per time 65 Scenario: Show only one submenu per time
60 Given I go to /admin/environment_design 66 Given I go to /admin/environment_design
  67 + And display ".categories-block .button-bar"
61 And I follow "Edit" within ".categories-block" 68 And I follow "Edit" within ".categories-block"
62 And I check "Product" 69 And I check "Product"
63 And I press "Save" 70 And I press "Save"
@@ -69,6 +76,7 @@ Feature: categories_block @@ -69,6 +76,7 @@ Feature: categories_block
69 @selenium @ignore-hidden-elements 76 @selenium @ignore-hidden-elements
70 Scenario: List just general categories 77 Scenario: List just general categories
71 Given I go to /admin/environment_design 78 Given I go to /admin/environment_design
  79 + And display ".categories-block .button-bar"
72 And I follow "Edit" within ".categories-block" 80 And I follow "Edit" within ".categories-block"
73 And I check "Generic category" 81 And I check "Generic category"
74 When I press "Save" 82 When I press "Save"
@@ -77,6 +85,7 @@ Feature: categories_block @@ -77,6 +85,7 @@ Feature: categories_block
77 @selenium @ignore-hidden-elements 85 @selenium @ignore-hidden-elements
78 Scenario: List just regions 86 Scenario: List just regions
79 Given I go to /admin/environment_design 87 Given I go to /admin/environment_design
  88 + And display ".categories-block .button-bar"
80 And I follow "Edit" within ".categories-block" 89 And I follow "Edit" within ".categories-block"
81 And I check "Region" 90 And I check "Region"
82 When I press "Save" 91 When I press "Save"