Skip to content

Commit

Permalink
wip test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 10, 2025
1 parent 95706d9 commit a546635
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/_unit-test/dropdown-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'dropdownOptions' => ['allowAdditions' => true],
]);

$form->addControl('dropdown_multi', [
/* $form->addControl('dropdown_multi', [
Form\Control\Dropdown::class,
'caption' => 'Dropdown multiple',
'multiple' => true,
Expand Down Expand Up @@ -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'));
Expand Down
8 changes: 8 additions & 0 deletions tests-behat/dropdown.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b> &lt;" 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']]"
Expand Down

0 comments on commit a546635

Please sign in to comment.