__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @javascript @core_form
Feature: disabledIf functionality in forms
For forms including disabledIf functions
As a user
If I trigger the disabledIf condition then the form elements will be disabled
# Note: if you are looking for the Behat tests for the filepicker widget,
# you will find them in repository/tests/behat.
Scenario: The file manager is disabled when disabledIf conditions are met
Given I am on the "filemanager_hideif_disabledif_form" "core_form > Fixture" page logged in as "admin"
When I click on "Disable" "radio"
# Test standard file manager.
Then the "disabled" attribute of "input#id_some_filemanager" "css_element" should contain "true"
# Test file manager in a group.
And the "disabled" attribute of "input#id_filemanager_group_some_filemanager_group" "css_element" should contain "true"
Scenario: The static element is disabled when 'eq' disabledIf conditions are met
Given I log in as "admin"
And I am on fixture page "/lib/form/tests/behat/fixtures/static_hideif_disabledif_form.php"
And I should see "Static with form elements"
When I click on "Disable" "radio"
And the "class" attribute of "#fitem_id_some_static" "css_element" should contain "text-muted"
And the "disabled" attribute of "input#id_some_static_username" "css_element" should contain "true"
And the "disabled" attribute of "Check" "button" should contain "true"
Then I click on "Enable" "radio"
And the "class" attribute of "#fitem_id_some_static" "css_element" should not contain "text-muted"
And the "#id_some_static_username" "css_element" should be enabled
And the "class" attribute of "Check" "button" should not contain "disabled"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| fixtures | Folder | 0777 |
|
|
| autocomplete.feature | File | 3.93 KB | 0777 |
|
| behat_core_form.php | File | 3.29 KB | 0777 |
|
| choicedropdown.feature | File | 1.74 KB | 0777 |
|
| dates.feature | File | 4.71 KB | 0777 |
|
| disabledif.feature | File | 1.68 KB | 0777 |
|
| graderescale_for_database_pointscale.feature | File | 2.2 KB | 0777 |
|
| graderescale_for_forum_pointscale.feature | File | 1.82 KB | 0777 |
|
| graderescale_for_glossary_pointscale.feature | File | 1.99 KB | 0777 |
|
| graderescale_for_lesson_pointscale.feature | File | 1.83 KB | 0777 |
|
| hideif.feature | File | 1.81 KB | 0777 |
|
| modgrade_validation.feature | File | 7.05 KB | 0777 |
|
| repeat_defaults.feature | File | 2.09 KB | 0777 |
|