AutorÃa | Ultima modificación | Ver Log |
@coreFeature: Choice dropdown form behat testIn order to use choicelist in quickformsAs an adminI need to be able to test it via behatBackground:Given I log in as "admin"And I am on fixture page "/lib/form/tests/behat/fixtures/field_choicedropdown_testpage.php"Scenario: Set some value into choice dropdownWhen I set the field "Basic choice dropdown" to "Text option 2"And I click on "Send form" "button"Then I should see "example0: option2" in the "submitted_data" "region"@javascriptScenario: Set some value into choice dropdown with javascript enabledWhen I set the field "Basic choice dropdown" to "Text option 2"And I click on "Send form" "button"Then I should see "example0: option2" in the "submitted_data" "region"@javascriptScenario: Disable choice dropdown via javascriptWhen I click on "Check to disable the first choice dropdown field." "checkbox"Then the "Disable if example" "field" should be disabled@javascriptScenario: Hide choice dropdown via javascriptGiven I should see "Hide if example"When I click on "Check to hide the first choice dropdown field." "checkbox"Then I should not see "Hide if example"@javascriptScenario: Use a choice dropdown to disable and hide other fieldsGiven I should not see "Hide if element"And the "Disabled if element" "field" should be disabledWhen I set the field "Control choice dropdown" to "Show or enable subelements"Then I should see "Hide if element"And the "Disabled if element" "field" should be enabledAnd I set the field "Control choice dropdown" to "Hide or disable subelements"And I should not see "Hide if element"And the "Disabled if element" "field" should be disabled