@@ -50,18 +50,30 @@ describe("Component Behavior", () => {
50
50
51
51
items [ 0 ] . click ( ) ;
52
52
53
- assert . strictEqual ( input . getProperty ( "value" ) , "6 " , "Event is fired" ) ;
53
+ assert . strictEqual ( input . getProperty ( "value" ) , "7 " , "Event is fired" ) ;
54
54
55
55
items [ 3 ] . click ( ) ;
56
56
57
- assert . strictEqual ( input . getProperty ( "value" ) , "6 " , "Event is not fired" ) ;
57
+ assert . strictEqual ( input . getProperty ( "value" ) , "7 " , "Event is not fired" ) ;
58
58
assert . strictEqual ( items [ 3 ] . getAttribute ( "expanded" ) , "true" , "Expanded is toggled" ) ;
59
59
60
60
items [ 3 ] . click ( ) ;
61
61
62
- assert . strictEqual ( input . getProperty ( "value" ) , "6 " , "Event is not fired" ) ;
62
+ assert . strictEqual ( input . getProperty ( "value" ) , "7 " , "Event is not fired" ) ;
63
63
assert . strictEqual ( items [ 3 ] . getAttribute ( "expanded" ) , "false" , "Expanded is toggled" ) ;
64
- } ) ;
64
+
65
+ items [ 1 ] . click ( ) ;
66
+ assert . strictEqual ( input . getProperty ( "value" ) , "8" , "Event is fired" ) ;
67
+
68
+ const staticAreaItemClassName = browser . getStaticAreaItemClassName ( "#sn1" ) ;
69
+ const popover = browser . $ ( `.${ staticAreaItemClassName } ` ) . shadow$ ( "ui5-responsive-popover" ) ;
70
+ items = popover . $ ( "ui5-list" ) . $$ ( "ui5-li" ) ;
71
+
72
+ items [ 1 ] . click ( ) ;
73
+
74
+ assert . strictEqual ( input . getProperty ( "value" ) , "9" , "Event is fired" ) ;
75
+
76
+ } ) ;
65
77
66
78
it ( "Tests header visibility" , ( ) => {
67
79
let showHeader = null ;
0 commit comments