1 |
efrain |
1 |
@core
|
|
|
2 |
Feature: Navigate action menu
|
|
|
3 |
In order to navigate an action menu
|
|
|
4 |
As a user
|
|
|
5 |
I need to be able to use the keyboard
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: The menu does not close on keyboard navigation
|
|
|
9 |
When I log in as "admin"
|
|
|
10 |
# Click to open the user menu.
|
|
|
11 |
And I click on ".usermenu a.toggle-display" "css_element" in the ".usermenu" "css_element"
|
|
|
12 |
# The menu should now be visible.
|
|
|
13 |
Then ".usermenu [role='menu']" "css_element" should be visible
|
|
|
14 |
# Press down arrow.
|
|
|
15 |
And I press the down key
|
|
|
16 |
# The menu should still be visible.
|
|
|
17 |
And ".usermenu [role='menu']" "css_element" should be visible
|
|
|
18 |
|
|
|
19 |
@javascript
|
|
|
20 |
Scenario: The menu closes when it clicked outside
|
|
|
21 |
When I log in as "admin"
|
|
|
22 |
# Click to open the user menu.
|
|
|
23 |
And I click on ".usermenu a.toggle-display" "css_element" in the ".usermenu" "css_element"
|
|
|
24 |
# The menu should now be visible.
|
|
|
25 |
Then ".usermenu [role='menu']" "css_element" should be visible
|
|
|
26 |
# Click outside the menu.
|
|
|
27 |
And I click on "adminsearchquery" "field"
|
|
|
28 |
# The menu should now be hidden.
|
|
|
29 |
And ".usermenu [role='menu']" "css_element" should not be visible
|