File tree 3 files changed +15
-2
lines changed
sap/ui/webcomponents/main/pages
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ class MultiComboBox extends UI5Element {
353
353
const popover = this . _getPopover ( isMorePopover ) ;
354
354
const otherPopover = this . _getPopover ( ! isMorePopover ) ;
355
355
356
- if ( popover && popover . _isOpen ) {
356
+ if ( popover && popover . opened ) {
357
357
return popover . close ( ) ;
358
358
}
359
359
Original file line number Diff line number Diff line change 77
77
< span > Predefined value</ span >
78
78
79
79
< br >
80
- < ui5-multi-combobox style ="width: 560px; " value ="Hello World ">
80
+ < ui5-multi-combobox id =" multi1 " style ="width: 560px; " value ="Hello World ">
81
81
< ui5-li style ="display: none " selected type ="Active "> Cosy</ ui5-li >
82
82
< ui5-li style ="display: none " type ="Active "> Compact</ ui5-li >
83
83
< ui5-li style ="display: none " selected type ="Active "> Condensed</ ui5-li >
Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ const assert = require("assert");
3
3
describe ( "MultiComboBox general interaction" , ( ) => {
4
4
browser . url ( "http://localhost:8080/test-resources/sap/ui/webcomponents/main/pages/MultiComboBox.html" ) ;
5
5
6
+ describe ( "toggling" , ( ) => {
7
+ it ( "opens/closes" , ( ) => {
8
+ const icon = browser . findElementDeep ( "#multi1 >>> #ui5-multi-combobox-input ui5-icon" ) ;
9
+ const popover = browser . findElementDeep ( "#multi1 >>> .ui5-multi-combobox-all-items-popover >>> .ui5-popup-root" ) ;
10
+
11
+ icon . click ( ) ;
12
+ assert . ok ( popover . isDisplayedInViewport ( ) , "Popover should be displayed in the viewport" ) ;
13
+
14
+ icon . click ( ) ;
15
+ assert . ok ( ! popover . isDisplayedInViewport ( ) , "Popover should close" ) ;
16
+ } ) ;
17
+ } ) ;
18
+
6
19
describe ( "selection and filtering" , ( ) => {
7
20
8
21
it ( "Opens all items popover, selects and deselects the first item" , ( ) => {
You can’t perform that action at this time.
0 commit comments