diff --git a/demos/_unit-test/dropdown-html.php b/demos/_unit-test/dropdown-html.php index 868efd2f9b..c9a6ea61d5 100644 --- a/demos/_unit-test/dropdown-html.php +++ b/demos/_unit-test/dropdown-html.php @@ -34,7 +34,7 @@ 'dropdownOptions' => ['allowAdditions' => true], ]); -$form->addControl('dropdown_multi', [ +/* $form->addControl('dropdown_multi', [ Form\Control\Dropdown::class, 'caption' => 'Dropdown multiple', 'multiple' => true, @@ -83,7 +83,7 @@ 'multiple' => true, 'model' => $lookupModel, 'settings' => ['allowAdditions' => true], -]); +]); */ foreach (array_keys($form->entity->getFields()) as $k) { $form->entity->set($k, $makeTestStringFx('d')); diff --git a/tests-behat/dropdown.feature b/tests-behat/dropdown.feature index 37f7e484c7..8bf191d035 100644 --- a/tests-behat/dropdown.feature +++ b/tests-behat/dropdown.feature @@ -25,6 +25,14 @@ Feature: Dropdown When I select value "" in lookup "multi" Then I check if input value for "input[name='multi']" match text "" + Scenario: dropdown with escaped HTML + Given I am on "_unit-test/dropdown-html.php" + When I press button "Save" + Then Modal is open with text "match init: 1" + When I click close modal + When I select value "u <" in lookup "dropdown_single" + Then Modal is open with text "match u only: 1" + Scenario: dropdown menu Given I am on "basic/menu.php" When I click using selector "//div.ui.dropdown[div[text()='With Callback']]"