@@ -37,9 +37,27 @@ describe("MultiComboBox general interaction", () => {
37
37
38
38
resetBtn . click ( ) ;
39
39
} ) ;
40
+
41
+ it ( "Opens selected items Popover" , ( ) => {
42
+ browser . url ( "http://localhost:8080/test-resources/pages/MultiComboBox.html" ) ;
43
+
44
+ browser . setWindowSize ( 400 , 1250 ) ;
45
+ const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#multi1" )
46
+ const showMore = $ ( "#multi1" ) . shadow$ ( ".ui5-multi-combobox-tokenizer" ) . shadow$ ( ".ui5-tokenizer-more-text" ) ;
47
+ const allPopover = $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( ".ui5-multi-combobox-all-items-responsive-popover" ) ;
48
+ const selectedPopover = $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( ".ui5-multi-combobox-selected-items-responsive-popover" ) ;
49
+
50
+ showMore . click ( ) ;
51
+
52
+ assert . ok ( ! allPopover . getProperty ( "opened" ) , "All popover should not be displayed" ) ;
53
+ assert . ok ( selectedPopover . getProperty ( "opened" ) , "All popover should be displayed" ) ;
54
+ } ) ;
40
55
} ) ;
41
56
42
57
describe ( "selection and filtering" , ( ) => {
58
+ browser . url ( "http://localhost:8080/test-resources/pages/MultiComboBox.html" ) ;
59
+ browser . setWindowSize ( 1920 , 1080 ) ;
60
+
43
61
44
62
it ( "Opens all items popover, selects and deselects the first item" , ( ) => {
45
63
const icon = browser . $ ( "#mcb" ) . shadow$ ( "[input-icon]" ) ;
@@ -51,7 +69,7 @@ describe("MultiComboBox general interaction", () => {
51
69
const paramsInput = $ ( "#events-parameters" ) ;
52
70
const callCountInput = $ ( "#events-call-count" ) ;
53
71
const resetBtn = $ ( "#reset-btn" ) ;
54
-
72
+
55
73
icon . click ( ) ;
56
74
57
75
assert . ok ( popover . getProperty ( "opened" ) , "Popover should be displayed in the viewport" ) ;
@@ -168,7 +186,7 @@ describe("MultiComboBox general interaction", () => {
168
186
describe ( "keyboard handling" , ( ) => {
169
187
browser . url ( "http://localhost:8080/test-resources/pages/MultiComboBox.html" ) ;
170
188
171
- it ( "tests backspace when combobox has an empty value" , ( ) => {
189
+ it ( "tests backspace when combobox has an empty value" , ( ) => {
172
190
let tokens = $ ( "#multi1" ) . shadow$$ ( ".ui5-multi-combobox-token" ) ;
173
191
const input = $ ( "#multi1" ) . shadow$ ( "input" ) ;
174
192
0 commit comments