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 25 | environment | CategoriesBlock |
26 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 32 @selenium @ignore-hidden-elements
29 33 Scenario: List just product categories
30 34 Given I go to /admin/environment_design
  35 + And display ".categories-block .button-bar"
31 36 And I follow "Edit" within ".categories-block"
32 37 And I check "Product"
33 38 When I press "Save"
... ... @@ -40,6 +45,7 @@ Feature: categories_block
40 45 @selenium @ignore-hidden-elements
41 46 Scenario: Show submenu if it exists
42 47 Given I go to /admin/environment_design
  48 + And display ".categories-block .button-bar"
43 49 And I follow "Edit" within ".categories-block"
44 50 And I check "Product"
45 51 And I press "Save"
... ... @@ -58,6 +64,7 @@ Feature: categories_block
58 64 @selenium @ignore-hidden-elements
59 65 Scenario: Show only one submenu per time
60 66 Given I go to /admin/environment_design
  67 + And display ".categories-block .button-bar"
61 68 And I follow "Edit" within ".categories-block"
62 69 And I check "Product"
63 70 And I press "Save"
... ... @@ -69,6 +76,7 @@ Feature: categories_block
69 76 @selenium @ignore-hidden-elements
70 77 Scenario: List just general categories
71 78 Given I go to /admin/environment_design
  79 + And display ".categories-block .button-bar"
72 80 And I follow "Edit" within ".categories-block"
73 81 And I check "Generic category"
74 82 When I press "Save"
... ... @@ -77,6 +85,7 @@ Feature: categories_block
77 85 @selenium @ignore-hidden-elements
78 86 Scenario: List just regions
79 87 Given I go to /admin/environment_design
  88 + And display ".categories-block .button-bar"
80 89 And I follow "Edit" within ".categories-block"
81 90 And I check "Region"
82 91 When I press "Save"
... ...