mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-51983-29' of git://github.com/ryanwyllie/moodle int…
…o MOODLE_29_STABLE
- Loading branch information
Showing
6 changed files
with
106 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@core | ||
Feature: Navigate action menu | ||
In order to navigate an action menu | ||
As a user | ||
I need to be able to use the keyboard | ||
|
||
@javascript | ||
Scenario: The menu does not close on keyboard navigation | ||
When I log in as "admin" | ||
# Click to open the user menu. | ||
And I click on ".usermenu a.toggle-display" "css_element" in the ".usermenu" "css_element" | ||
# The menu should now be visible. | ||
Then ".usermenu [role='menu']" "css_element" should be visible | ||
# Press down arrow. | ||
And I press key "40" in "#actionmenuaction-1" "css_element" | ||
# The menu should still be visible. | ||
And ".usermenu [role='menu']" "css_element" should be visible | ||
|
||
@javascript | ||
Scenario: The menu closes when it clicked outside | ||
When I log in as "admin" | ||
# Click to open the user menu. | ||
And I click on ".usermenu a.toggle-display" "css_element" in the ".usermenu" "css_element" | ||
# The menu should now be visible. | ||
Then ".usermenu [role='menu']" "css_element" should be visible | ||
# Click outside the menu. | ||
And I click on "adminsearchquery" "field" | ||
# The menu should now be hidden. | ||
And ".usermenu [role='menu']" "css_element" should not be visible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
lib/yui/build/moodle-core-actionmenu/moodle-core-actionmenu-min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.